]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: show error string in reply msg printout
authorSage Weil <sage@newdream.net>
Tue, 26 May 2009 17:33:42 +0000 (10:33 -0700)
committerSage Weil <sage@newdream.net>
Tue, 26 May 2009 17:33:42 +0000 (10:33 -0700)
src/messages/MOSDOpReply.h

index 28644feb3578b402cbe4b72db4d744730b1886b4..52b8dae1e415d3423fc89353e65c05dad956fb0c 100644 (file)
@@ -102,6 +102,8 @@ public:
        out << " ack";
     }
     out << " = " << get_result();
+    if (get_result() < 0) 
+      out << " (" << strerror(-get_result()) << ")";
     out << ")";
   }