Commit 00b56a00 00b56a00536378888601ef44d34b2afe2ad3385e by Adam

Added a warning for usage with PhantomJS v2.0 - prerelease.

1 parent 50ab02e1
......@@ -110,9 +110,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
if (version.minor === 8 && version.patch < 1) {
return __die('CasperJS needs at least PhantomJS v1.8.1 or later.');
}
} else if (version.major !== 2) {
return __die('CasperJS needs PhantomJS v1.x or v2.x');
} else if (version.major === 2) {
console.log("Warning PhantomJS v2.0 not yet released. There will not be any official support for any bugs until stable version is released!");
}
else return __die('CasperJS needs PhantomJS v1.x or v2.x');
})(phantom.version);
// Hooks in default phantomjs error handler
......