Thread (36 messages) flat view 36 messages, 8 authors, 2016-06-15

Re: [RFC PATCH v2 12/16] Smart fetch and push over HTTP: server side

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:47:32

Johannes Sixt [off-list ref] wrote:
Shawn O. Pearce schrieb:
quoted
diff --git a/http-backend.c b/http-backend.c
#include "run-command.h" is missing here because you added it already in
patch 10/16 unnecessarily.
quoted
+	if (start_command(&cld))
+		die_errno("Cannot start %s", argv[0]);
...
+	if (finish_command(&cld))
+		die("%s terminated with error", argv[0]);
start_command and finish_command already write an error message for you
that includes argv[0] and errno. You can just exit(1) here.
Whoops on both; thanks for the catch.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help