Catch PhantomJS error

This commit is contained in:
Hillel Coren 2017-01-29 09:06:41 +02:00
parent 034496ac6c
commit 716c6dd43f

View File

@ -1207,7 +1207,7 @@ class Invoice extends EntityModel implements BalanceAffecting
}
$pdfString = strip_tags($pdfString);
} catch (Exception $exception) {
} catch (\Exception $exception) {
Utils::logError("PhantomJS - Failed to create pdf: {$exception->getMessage()}");
return false;
}