diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2018-07-16 23:53:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-17 11:18:07 -0700 |
commit | 3c426eccc29e38301774e90adeea336642826b0c (patch) | |
tree | f725d148f84c020b3c51254c9a3f77d93e300838 /notes-cache.c | |
parent | Git 2.18 (diff) | |
download | tgif-3c426eccc29e38301774e90adeea336642826b0c.tar.xz |
gc: improve handling of errors reading gc.log
A collection of minor error handling fixes:
- use an error message in lower case, following the usual style
- quote filenames in error messages to make them easier to read and to
decrease translation load by matching other 'stat' error messages
- check for and report errors from 'read', too
- avoid being confused by a gc.log larger than INT_MAX bytes
Noticed by code inspection.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-cache.c')
0 files changed, 0 insertions, 0 deletions