Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH] builtin-apply: Show a more descriptive error on failure when opening a patch

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:29

Possibly related (same subject, not in this thread)

Hi,

On Mon, 14 Apr 2008, Alberto Bertogli wrote:
+		if (fd < 0) {
+			error("can't open patch '%s': %s", arg,
+					strerror(errno));
+			return 1;
+		}
Do you absolutely want to retain the curly braces, and have two 
statements?   I would prefer "return error(...)", and if you absolutely 
insist on a return 1: "return !!error(...)".

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help