[ovs-dev] [bugfixes 4/4] ovs-appctl: On failure, print the error message output by the server.

Ben Pfaff blp at nicira.com
Wed Dec 8 23:22:46 UTC 2010


Otherwise failures are much more mysterious.
---
 utilities/ovs-appctl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c
index dc45742..742603b 100644
--- a/utilities/ovs-appctl.c
+++ b/utilities/ovs-appctl.c
@@ -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);
     }
-- 
1.7.1





More information about the dev mailing list