diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:46 -0700 |
| commit | dd787c19c4f011cc3adb422ef856f2c58d989640 (patch) | |
| tree | 1b8fdfb2e14cc423a31ab1ce75c6f05226483da6 /builtin-stripspace.c | |
| parent | 864cd9491772367b3ce5b0dda98f068e5bd49680 (diff) | |
| parent | 0721c314a5c8fddc877140ab5a333c42c62f780d (diff) | |
| download | git-dd787c19c4f011cc3adb422ef856f2c58d989640.tar.xz | |
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()
Diffstat (limited to 'builtin-stripspace.c')
| -rw-r--r-- | builtin-stripspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-stripspace.c b/builtin-stripspace.c index d6e3896c00..1fd2205d53 100644 --- a/builtin-stripspace.c +++ b/builtin-stripspace.c @@ -78,7 +78,7 @@ int cmd_stripspace(int argc, const char **argv, const char *prefix) strip_comments = 1; if (strbuf_read(&buf, 0, 1024) < 0) - die("could not read the input"); + die_errno("could not read the input"); stripspace(&buf, strip_comments); |
