Skip to content

Commit

Permalink
Fix typo: do not show name1 when name2 fails
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Feb 25, 2007
1 parent efdfd6c commit 646b329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 646b329

Please sign in to comment.