mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Better error message in Decoder
This commit is contained in:
@@ -57,7 +57,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
throw new NotReadableException(
|
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))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user