Skip to content

Commit

Permalink
throw exception if no result is obtained
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Oct 23, 2024
1 parent e433008 commit 9c3a63b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Processor/Api/PDFreactor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public function convert($config, & $connectionSettings = null)
}
}
}
if(!$result) {
throw $this->_createServerException('serviceUnavailable', 'PDFreactor Web Service is unavailable.', $result);
}
if ($status == 422) {
throw $this->_createServerException($errorId, $result->error, $result);
} elseif ($status == 400) {
Expand Down

0 comments on commit 9c3a63b

Please sign in to comment.