Commit 24942703 24942703673ebee187195e0c403e6595ed58cc3a by Nicolas Perriault

if phantom is not defined, can't phantom.exit - closes #344

1 parent 776c633a
...@@ -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) {
......