Merge branch 'tr/die_errno'
* tr/die_errno: Use die_errno() instead of die() when checking syscalls Convert existing die(..., strerror(errno)) to die_errno() die_errno(): double % in strerror() output just in case Introduce die_errno() that appends strerror(errno) to die()
This commit is contained in:
@ -1013,8 +1013,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
|
||||
if (use_stdout)
|
||||
die("standard output, or directory, which one?");
|
||||
if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)
|
||||
die("Could not create directory %s",
|
||||
output_directory);
|
||||
die_errno("Could not create directory '%s'",
|
||||
output_directory);
|
||||
}
|
||||
|
||||
if (rev.pending.nr == 1) {
|
||||
|
||||
Reference in New Issue
Block a user