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