diff --git a/src/Knowledge/Ingest/DocumentLoader.php b/src/Knowledge/Ingest/DocumentLoader.php index 0f61e42..f2b4704 100644 --- a/src/Knowledge/Ingest/DocumentLoader.php +++ b/src/Knowledge/Ingest/DocumentLoader.php @@ -46,7 +46,7 @@ final class DocumentLoader $pdf = $parser->parseFile($path); $text = $pdf->getText(); } catch (\Throwable $e) { - throw new \RuntimeException("Failed to parse PDF: {$path}", 0, $e); + throw new \RuntimeException("Failed to parse PDF: {$path}. Error: " . $e->getMessage(), 0, $e); } return $this->normalize($text);