Merge branch 'nd/error-errno'
The code for warning_errno/die_errno has been refactored and a new
error_errno() reporting helper is introduced.
* nd/error-errno: (41 commits)
wrapper.c: use warning_errno()
vcs-svn: use error_errno()
upload-pack.c: use error_errno()
unpack-trees.c: use error_errno()
transport-helper.c: use error_errno()
sha1_file.c: use {error,die,warning}_errno()
server-info.c: use error_errno()
sequencer.c: use error_errno()
run-command.c: use error_errno()
rerere.c: use error_errno() and warning_errno()
reachable.c: use error_errno()
mailmap.c: use error_errno()
ident.c: use warning_errno()
http.c: use error_errno() and warning_errno()
grep.c: use error_errno()
gpg-interface.c: use error_errno()
fast-import.c: use error_errno()
entry.c: use error_errno()
editor.c: use error_errno()
diff-no-index.c: use error_errno()
...
This commit is contained in:
@ -219,11 +219,9 @@ int verify_signed_buffer(const char *payload, size_t payload_size,
|
||||
args_gpg[0] = gpg_program;
|
||||
fd = git_mkstemp(path, PATH_MAX, ".git_vtag_tmpXXXXXX");
|
||||
if (fd < 0)
|
||||
return error(_("could not create temporary file '%s': %s"),
|
||||
path, strerror(errno));
|
||||
return error_errno(_("could not create temporary file '%s'"), path);
|
||||
if (write_in_full(fd, signature, signature_size) < 0)
|
||||
return error(_("failed writing detached signature to '%s': %s"),
|
||||
path, strerror(errno));
|
||||
return error_errno(_("failed writing detached signature to '%s'"), path);
|
||||
close(fd);
|
||||
|
||||
gpg.argv = args_gpg;
|
||||
|
||||
Reference in New Issue
Block a user