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

This commit is contained in:
Sasha Szpakowski
2024-12-20 12:34:50 -04:00
parent 850e721be2
commit 4f514a6d0d
+1 -1
View File
@@ -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.