mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Include zlib error code when love.data.decompress fails for zlib/gzip data.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user