From 716c6dd43f6763f6f8debcd03ded7921f23bf1e1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 Jan 2017 09:06:41 +0200 Subject: [PATCH] Catch PhantomJS error --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 4f2100e23..650b4000f 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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; }