diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-05-08 16:48:00 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-09 12:29:08 -0700 |
commit | 1c8ead97f842fb385ce729bc45760b439365b79a (patch) | |
tree | dcdf6073f755245fbb8579232100e10ddafb928f /vcs-svn/svndiff.c | |
parent | d2b6afa2cb2e56d506442dfba96aa08b54d71f6b (diff) | |
download | git-1c8ead97f842fb385ce729bc45760b439365b79a.tar.gz git-1c8ead97f842fb385ce729bc45760b439365b79a.tar.xz |
vcs-svn: 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 'vcs-svn/svndiff.c')
-rw-r--r-- | vcs-svn/svndiff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcs-svn/svndiff.c b/vcs-svn/svndiff.c index 74c97c454..75c753162 100644 --- a/vcs-svn/svndiff.c +++ b/vcs-svn/svndiff.c @@ -64,13 +64,13 @@ static int write_strbuf(struct strbuf *sb, FILE *out) { if (fwrite(sb->buf, 1, sb->len, out) == sb->len) /* Success. */ return 0; - return error("cannot write delta postimage: %s", strerror(errno)); + return error_errno("cannot write delta postimage"); } static int error_short_read(struct line_buffer *input) { if (buffer_ferror(input)) - return error("error reading delta: %s", strerror(errno)); + return error_errno("error reading delta"); return error("invalid delta: unexpected end of file"); } |