1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 04:46:09 +03:00

Fix rasterize example exit status on failure.

https://github.com/ariya/phantomjs/issues/11911
This commit is contained in:
Petteri Räty 2014-01-19 23:42:59 +02:00 committed by Ariya Hidayat
parent fbe8eefc29
commit a86ae1948c

View File

@ -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);