diff --git a/lib/Service/PdfParserService.php b/lib/Service/PdfParserService.php index ea9e587dd..a44ade9e0 100644 --- a/lib/Service/PdfParserService.php +++ b/lib/Service/PdfParserService.php @@ -45,7 +45,7 @@ public function toArray(): array { try { $output = $this->parsePdfOnlyWithPhp(); } catch (LibresignException $e) { - $this->logger->error('Impossible get metadata from this file: ' . $th->getMessage()); + $this->logger->error('Impossible get metadata from this file: ' . $e->getMessage()); throw new LibresignException('Impossible get metadata from this file.'); } catch (\Throwable $th) { if ($th->getMessage() === 'Secured pdf file are currently not supported.') {