credential-store: don't pass strerror to die_errno()
authorSZEDER Gábor <szeder@ira.uka.de>
Wed, 16 Dec 2015 11:22:55 +0000 (12:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Dec 2015 18:27:12 +0000 (10:27 -0800)
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-store.c
index fc67d16c10882bf543bd521d2f6dfee8d3c4d213..54c4e047373757598f6de7bf994251f0169b2b38 100644 (file)
@@ -64,8 +64,7 @@ static void rewrite_credential_file(const char *fn, struct credential *c,
                print_line(extra);
        parse_credential_file(fn, c, NULL, print_line);
        if (commit_lock_file(&credential_lock) < 0)
-               die_errno("unable to write credential store: %s",
-                         strerror(errno));
+               die_errno("unable to write credential store");
 }
 
 static void store_credential_file(const char *fn, struct credential *c)