if phantom is not defined, can't phantom.exit - closes #344
Showing
1 changed file
with
0 additions
and
1 deletions
... | @@ -33,7 +33,6 @@ | ... | @@ -33,7 +33,6 @@ |
33 | 33 | ||
34 | if (!phantom) { | 34 | if (!phantom) { |
35 | console.error('CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/'); | 35 | console.error('CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/'); |
36 | phantom.exit(1); | ||
37 | } | 36 | } |
38 | 37 | ||
39 | if (phantom.version.major === 1 && phantom.version.minor < 7) { | 38 | if (phantom.version.major === 1 && phantom.version.minor < 7) { | ... | ... |
-
Please register or sign in to post a comment