Skip to content

Commit

Permalink
FIX silent error on Convert error, fixes #656
Browse files Browse the repository at this point in the history
  • Loading branch information
xini authored Nov 11, 2024
1 parent b6b78b3 commit d9e6f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageManipulation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d9e6f40

Please sign in to comment.