Added a warning for usage with PhantomJS v2.0 - prerelease.
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment