WEBPHandler: Update error message when image alloc fails.

This commit is contained in:
Miku AuahDark
2026-07-18 17:16:39 +08:00
parent 629fc3e9ff
commit 5e0ce2e282
+1 -1
View File
@@ -63,7 +63,7 @@ WEBPHandler::DecodedImage WEBPHandler::decode(Data *data)
unsigned char *buf = new (std::nothrow) unsigned char[imagesize];
if (!buf)
throw love::Exception("Could not decode WebP image (%s)", simplewebp_get_error_text(SIMPLEWEBP_ALLOC_ERROR));
throw love::Exception("Could not decode WebP image (not enough memory)");
err = simplewebp_decode(swebp, buf, nullptr);
simplewebp_unload(swebp);