From a86ae1948ca5ab20efc5c89ee39d183c33f59232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petteri=20R=C3=A4ty?= Date: Sun, 19 Jan 2014 23:42:59 +0200 Subject: [PATCH] Fix rasterize example exit status on failure. https://github.com/ariya/phantomjs/issues/11911 --- examples/rasterize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rasterize.js b/examples/rasterize.js index 17b7d89d..b0e0f67d 100644 --- a/examples/rasterize.js +++ b/examples/rasterize.js @@ -37,7 +37,7 @@ if (system.args.length < 3 || system.args.length > 5) { page.open(address, function (status) { if (status !== 'success') { console.log('Unable to load the address!'); - phantom.exit(); + phantom.exit(1); } else { window.setTimeout(function () { page.render(output);