From 0e5bd8c4a5f9134a7934ab2a0917c181a46e33e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Stamenkovi=C4=87?= Date: Thu, 9 Jul 2020 11:21:49 +0200 Subject: [PATCH] Better error message in Decoder --- src/Intervention/Image/Gd/Decoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/Gd/Decoder.php b/src/Intervention/Image/Gd/Decoder.php index 6d2d7b4d..11a0bc0b 100644 --- a/src/Intervention/Image/Gd/Decoder.php +++ b/src/Intervention/Image/Gd/Decoder.php @@ -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)) ); }