]> rtime.felk.cvut.cz Git - git.git/blobdiff - builtin-tag.c
Use die_errno() instead of die() when checking syscalls
[git.git] / builtin-tag.c
index 7b51095c80b4b14eb389c19bfc1889ce1c187530..165bec3069cbb31025258a0c20d61158482025ed 100644 (file)
@@ -442,7 +442,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
                else {
                        if (!strcmp(msgfile, "-")) {
                                if (strbuf_read(&buf, 0, 1024) < 0)
-                                       die("cannot read %s", msgfile);
+                                       die_errno("cannot read '%s'", msgfile);
                        } else {
                                if (strbuf_read_file(&buf, msgfile, 1024) < 0)
                                        die_errno("could not open or read '%s'",