diff --git a/src/Processor/Api/PDFreactor.class.php b/src/Processor/Api/PDFreactor.class.php index 88a34ba..9c64659 100644 --- a/src/Processor/Api/PDFreactor.class.php +++ b/src/Processor/Api/PDFreactor.class.php @@ -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) {