diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -32,7 +32,8 @@ function takeScreenshot(title) {
 }
 
 function ProshotReporter(runner) {
-	runner.on('fail', function(test) {
+	runner.on('fail', function(test, err) {
+		test.err = err;
 		return takeScreenshot(test.fullTitle());
 	});
 }
Fix #1: Add a workaround for protractor depending on internal behavior of builtin mocha reporters