diff --git a/lib/bootstrap.js b/lib/bootstrap.js
index <HASH>..<HASH> 100644
--- a/lib/bootstrap.js
+++ b/lib/bootstrap.js
@@ -9,7 +9,7 @@ function emit(event) {
 }
 
 phantom.onError = function bootstrapOnError(msg, trace) {
-    emit('error', msg);
+    emit('error', msg, trace);
     phantom.exit(1);
 };
Also emit trace when crashing in onError