diff --git a/src/OrderDocumentPdfMerger.php b/src/OrderDocumentPdfMerger.php index 4dfd727..9882743 100644 --- a/src/OrderDocumentPdfMerger.php +++ b/src/OrderDocumentPdfMerger.php @@ -71,7 +71,7 @@ protected function getXmlContent(): string if ($this->xmlDataIsFile()) { $xmlContent = file_get_contents($this->xmlDataOrFilename); if ($xmlContent === false) { - throw new OrderFileNotReadableException('Could not read XML file'); + throw new OrderFileNotReadableException($this->xmlDataOrFilename); } } else { $xmlContent = $this->xmlDataOrFilename;