summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Revyakin <vadimr@intel.com>2006-11-21 16:01:57 +0000
committerVadim Revyakin <vadimr@intel.com>2006-11-21 16:01:57 +0000
commite8e5d317ff64a63f96265bf64d3f47e9d9031cd7 (patch)
tree05c560f007de76a305081dad90221e0f17e3b915 /src
parent3dbd8973ae9ec424ddee5abbfb403b71ee3e3809 (diff)
downloadwsmancli-e8e5d317ff64a63f96265bf64d3f47e9d9031cd7.tar.gz
wsmancli-e8e5d317ff64a63f96265bf64d3f47e9d9031cd7.tar.xz
wsmancli-e8e5d317ff64a63f96265bf64d3f47e9d9031cd7.zip
Fault string is added to client structure
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c3
1 files changed, 3 insertions, 0 deletions
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);