From 5cf3ab19ee254548eff83cd7a7b641944c496f12 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 17 Apr 2016 15:30:17 -0500 Subject: [PATCH] gzip: fix some error messages --- tools/gzip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gzip.c b/tools/gzip.c index e2d51e4..32e0c94 100644 --- a/tools/gzip.c +++ b/tools/gzip.c @@ -125,7 +125,7 @@ write_file(const tchar *path, const void *contents, size_t size) contents = (const uint8_t *)contents + ret; } - ASSERT(!close(fd), "Error writing data to \"%"TS"\"", + ASSERT(!close(fd), "Error writing data to \"%"TS"\": %s", path, strerror(errno)); } @@ -181,13 +181,13 @@ decompress_file(struct deflate_decompressor *d, const tchar *path, bool force) uncompressed_data, uncompressed_size, NULL); ASSERT(result != DECOMPRESS_INSUFFICIENT_SPACE, "Decompression of \"%"TS"\" failed with error code: " - "INSUFFICIENT_SPACE.\n", + "INSUFFICIENT_SPACE.\n" " The file is probably too large to be processed by " "this program.", path); ASSERT(result == DECOMPRESS_SUCCESS, "Decompression of \"%"TS"\" failed with error code: %d.\n", - result); + path, result); write_file(newpath, uncompressed_data, uncompressed_size);