Skip to content

Commit

Permalink
Added text to when PDF cannot be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
petericebear committed Jul 14, 2019
1 parent f4f18fa commit 5068696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5068696

Please sign in to comment.