From e8e5d317ff64a63f96265bf64d3f47e9d9031cd7 Mon Sep 17 00:00:00 2001 From: Vadim Revyakin Date: Tue, 21 Nov 2006 16:01:57 +0000 Subject: Fault string is added to client structure --- src/wsman.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wsman.c b/src/wsman.c index 7a9fadc..312c693 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -324,6 +324,9 @@ int main(int argc, char** argv) if (wsman_get_client_response_code(cl) != 200) { fprintf(stderr, "Connection failed. response code = %ld\n", wsman_get_client_response_code(cl)); + if (wsman_client_get_fault_string(cl)) { + fprintf(stderr, "%s\n", wsman_client_get_fault_string(cl)); + } } destroy_action_options(&options); -- cgit