From d9e6f40072549f11619862b1a27bd382bd77e5cc Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Mon, 11 Nov 2024 18:03:26 +1100 Subject: [PATCH] FIX silent error on Convert error, fixes #656 --- src/ImageManipulation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageManipulation.php b/src/ImageManipulation.php index a2827fc2..8f9e7491 100644 --- a/src/ImageManipulation.php +++ b/src/ImageManipulation.php @@ -725,7 +725,7 @@ public function Convert(string $toExtension): ?AssetContainer return $converter->convert($this, $toExtension); } catch (FileConverterException $e) { /** @var LoggerInterface $logger */ - $logger = Injector::inst()->get(LoggerInterface::class . '.errorhandler'); + $logger = Injector::inst()->get(LoggerInterface::class); $logger->error($e->getMessage()); return null; }