From 8073b56a85a43143511ad561e4f6d85fec81b792 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 8 Jul 2014 11:55:23 -0400 Subject: [PATCH] tweaked read_buffer error messages --- openbr/universal_template.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/universal_template.cpp b/openbr/universal_template.cpp index 2919b2f..73441c5 100644 --- a/openbr/universal_template.cpp +++ b/openbr/universal_template.cpp @@ -66,12 +66,12 @@ static bool read_buffer(FILE *file, char *buffer, size_t bytes, bool eofAllowed) if (feof(file)) { if (eofAllowed && (bytesRemaining == bytes)) return false; - qFatal("Unexpected end of file after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); + qFatal("End of file after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); } if (ferror(file)) { perror(NULL); - qFatal("Error while reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); + qFatal("Error after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); } } return true; -- libgit2 0.21.4