Commit 8073b56a85a43143511ad561e4f6d85fec81b792
1 parent
27c2e3e5
tweaked read_buffer error messages
Showing
1 changed file
with
2 additions
and
2 deletions
openbr/universal_template.cpp
| @@ -66,12 +66,12 @@ static bool read_buffer(FILE *file, char *buffer, size_t bytes, bool eofAllowed) | @@ -66,12 +66,12 @@ static bool read_buffer(FILE *file, char *buffer, size_t bytes, bool eofAllowed) | ||
| 66 | if (feof(file)) { | 66 | if (feof(file)) { |
| 67 | if (eofAllowed && (bytesRemaining == bytes)) | 67 | if (eofAllowed && (bytesRemaining == bytes)) |
| 68 | return false; | 68 | return false; |
| 69 | - qFatal("Unexpected end of file after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); | 69 | + qFatal("End of file after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | if (ferror(file)) { | 72 | if (ferror(file)) { |
| 73 | perror(NULL); | 73 | perror(NULL); |
| 74 | - qFatal("Error while reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); | 74 | + qFatal("Error after reading %d of %d bytes.", int(bytes - bytesRemaining), int(bytes)); |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | return true; | 77 | return true; |