Code

Fix typo: do not show name1 when name2 fails
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sun, 25 Feb 2007 22:34:31 +0000 (23:34 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 25 Feb 2007 22:42:23 +0000 (14:42 -0800)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-lib.c

index 1d184422a5e8645684702e239051948ca386d318..17b9a56fa2d01433430f8245218b98bce0545858 100644 (file)
@@ -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;
        }