git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/8] Fix typo: do not show name1 when name2 fails

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 25, 2007, 22:34 UTC
Message-ID
<Pine.LNX.4.63.0702252334200.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 diff-lib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/diff-lib.c b/diff-lib.c
index 1d18442..17b9a56 100644
--- a/diff-lib.c
+++ b/diff-lib.c
@@ -43,7 +43,7 @@ static int queue_diff(struct diff_options *o,
 	}
 	if (name2) {
 		if (stat(name2, &st))
-			return error("Could not access '%s'", name1);
+			return error("Could not access '%s'", name2);
 		mode2 = st.st_mode;
 	}
 
-- 
1.5.0.1.788.g8ca52
Message 1 of 1 in “Fix typo: do not show name1 when name2 fails”
  1. 1/8 Fix typo: do not show name1 when name2 failsJohannes Schindelin, Feb 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.