diff --git a/src/Info.php b/src/Info.php index 307ad0f..2bf4309 100644 --- a/src/Info.php +++ b/src/Info.php @@ -42,7 +42,7 @@ private function loadOutput() exec("$cmd $file", $output, $returnVar); switch ($returnVar) { case 1: - throw new OpenPDFException(); + throw new OpenPDFException("Error opening PDF file: {$file}."); break; case 2: throw new OpenOutputException(); diff --git a/src/Text.php b/src/Text.php index c496be7..3ed8071 100644 --- a/src/Text.php +++ b/src/Text.php @@ -27,7 +27,7 @@ public function convert() switch ($returnVar) { case 1: - throw new OpenPDFException(); + throw new OpenPDFException("Error opening PDF file: {$file}."); break; case 2: throw new OpenOutputException();