[PATCH] printing CIMError code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] printing CIMError code

Prabhakar_Pujeri
Signed-off-by: prabhakar pujeri <[hidden email]>
---
 src/server/wsmand-listener.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/wsmand-listener.c b/src/server/wsmand-listener.c
index 03b220d..a1cfe1f 100644
--- a/src/server/wsmand-listener.c
+++ b/src/server/wsmand-listener.c
@@ -308,7 +308,7 @@ void server_callback(struct shttpd_arg *arg)
  cim_error = cimxml_msg->status.fault_msg;
  if (cim_error) {
  shttpd_printf(arg, "HTTP/1.1 %d %s\r\n", status, fault_reason);
- shttpd_printf(arg, "CIMError: %s\r\n", cim_error);
+ shttpd_printf(arg, "CIMError:%d:%s\r\n", cim_error_code, cim_error);
  cimxml_message_destroy(cimxml_msg);
  goto CONTINUE;
  }
--
2.4.0


------------------------------------------------------------------------------
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...