ovs-appctl: On failure, print the error message output by the server.
authorBen Pfaff <blp@nicira.com>
Wed, 8 Dec 2010 22:27:05 +0000 (14:27 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Dec 2010 01:09:29 +0000 (17:09 -0800)
Otherwise failures are much more mysterious.

utilities/ovs-appctl.c

index dc45742..742603b 100644 (file)
@@ -65,6 +65,7 @@ main(int argc, char *argv[])
         ovs_fatal(error, "%s: transaction error", target);
     }
     if (code / 100 != 2) {
+        fputs(reply, stderr);
         ovs_error(0, "%s: server returned reply code %03d", target, code);
         exit(2);
     }