From: Ben Pfaff Date: Wed, 8 Dec 2010 22:27:05 +0000 (-0800) Subject: ovs-appctl: On failure, print the error message output by the server. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3080205e8f8c812a61f0825a5f83dbd7439fab31;p=openvswitch ovs-appctl: On failure, print the error message output by the server. Otherwise failures are much more mysterious. --- diff --git a/utilities/ovs-appctl.c b/utilities/ovs-appctl.c index dc457426..742603bd 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); }