Merge branch 'rs/grep-p'
[gitweb.git] / builtin-add.c
index 4e44148e05843e03befc167f6bdf3a1567d3f8ad..78989dad8cb07dee00054c3ea98d16eb493a05c9 100644 (file)
@@ -220,7 +220,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
        launch_editor(file, NULL, NULL);
 
        if (stat(file, &st))
-               die("Could not stat '%s'", file);
+               die_errno("Could not stat '%s'", file);
        if (!st.st_size)
                die("Empty patch. Aborted.");