mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 08:09:54 +02:00
Merge pull request #1026 from umpirsky/patch-1
Better error message in Decoder
This commit is contained in:
@@ -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))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user