From 4092053cb57499dd391e5973f7aec14c043da1ff Mon Sep 17 00:00:00 2001 From: Martin Grandrath Date: Thu, 27 Nov 2014 20:01:59 +0100 Subject: [PATCH] PhantomJS exits with correct code when fonts fail to load --- src/_phantomjs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/_phantomjs.js b/src/_phantomjs.js index eee56bfd7..eaf1cdee7 100644 --- a/src/_phantomjs.js +++ b/src/_phantomjs.js @@ -28,7 +28,9 @@ console.log("error", error); phantom.exit(1); } - phantom.exit(0); + else { + phantom.exit(0); + } }, 10000); } } @@ -77,4 +79,4 @@ } } -}()); \ No newline at end of file +}());