Browse Source

Include zlib error code when love.data.decompress fails for zlib/gzip data.

Sasha Szpakowski 8 months ago
parent
commit
4f514a6d0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/data/Compressor.cpp

+ 1 - 1
src/modules/data/Compressor.cpp

@@ -341,7 +341,7 @@ public:
 			{
 				// For any error other than "not enough room", throw an exception.
 				delete[] rawbytes;
-				throw love::Exception("Could not decompress zlib/gzip-compressed data.");
+				throw love::Exception("Could not decompress zlib/gzip-compressed data (error code: %d).", status);
 			}
 
 			// Not enough room in the output buffer: try again with a larger size.