diff --git a/bin/bootstrap.js b/bin/bootstrap.js
index <HASH>..<HASH> 100755
--- a/bin/bootstrap.js
+++ b/bin/bootstrap.js
@@ -150,7 +150,7 @@ if (!phantom.casperLoaded) {
             }
         }
         // trick to locate source file location on error
-        scriptCode += ";var __fe__ = new Error('__sourceId__')";
+        scriptCode += ";var __fe__ = new CasperError('__sourceId__')";
         scriptCode += ";__fe__.fileName = '" + file + "'";
         scriptCode += ";throw __fe__;";
         return scriptCode;
@@ -166,7 +166,7 @@ if (!phantom.casperLoaded) {
         if (typeof callback === "function") {
             callback(error, file);
         } else {
-            console.error(this.getErrorMessage(error));
+            console.error(error.stack);
             this.exit(1);
         }
     };
diff --git a/modules/tester.js b/modules/tester.js
index <HASH>..<HASH> 100644
--- a/modules/tester.js
+++ b/modules/tester.js
@@ -320,7 +320,7 @@ var Tester = function(casper, options) {
             phantom.processScriptError(e, file, function(error) {
                 // do not abort the whole suite, just fail fast displaying the
                 // caught error and process next suite
-                self.fail(phantom.getErrorMessage(e));
+                self.fail(e);
                 self.done();
             });
         }
better display of uncaught CasperError errors