1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 00:29:55 +02:00

Better error message in Decoder

This commit is contained in:
Saša Stamenković
2020-07-09 11:21:49 +02:00
committed by GitHub
parent 9355b63bcf
commit 0e5bd8c4a5

View File

@@ -57,7 +57,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
default:
throw new NotReadableException(
"Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files."
sprintf("Unsupported image type %s. GD driver is only able to decode JPG, PNG, GIF or WebP files.", strtolower($mime))
);
}