summaryrefslogtreecommitdiff
path: root/gpg-interface.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 16:47:46 +0700
committerJunio C Hamano <gitster@pobox.com>2016-05-09 12:29:08 -0700
commitddf362a2a9b6cf784497162d21556a950f99dce8 (patch)
tree27c28979637a443691dd62fcb59d0bc1a066b124 /gpg-interface.c
parent6c223e495877001987e525ca93b7fdd63e03b529 (diff)
downloadgit-ddf362a2a9b6cf784497162d21556a950f99dce8.tar.gz
gpg-interface.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gpg-interface.c')
-rw-r--r--gpg-interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gpg-interface.c b/gpg-interface.c
index 3dc2fe397e..20612fe501 100644
--- a/gpg-interface.c
+++ b/gpg-interface.c
@@ -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;