changeset 992:929e43afbdb1

Improve error message slightly.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 28 Feb 2015 05:06:55 +0200
parents acd91a57fe8c
children 5bcd219ddde3
files src/dmzlib.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmzlib.c	Sat Feb 28 05:06:44 2015 +0200
+++ b/src/dmzlib.c	Sat Feb 28 05:06:55 2015 +0200
@@ -448,7 +448,8 @@
     if (nlen != (len ^ 0xffff))
     {
         return dmError(DMERR_DATA_ERROR,
-            "Compressed data corrupt.\n");
+            "Compressed data corrupt %04x :: %04x [%04x].\n",
+            nlen, len, len ^ 0xffff);
     }
 
     if (ctx->zbuffer + len > ctx->zbufferEnd)