lib/guard/jasmine/phantomjs/src/guard-jasmine.coffee in guard-jasmine-2.0.5 vs lib/guard/jasmine/phantomjs/src/guard-jasmine.coffee in guard-jasmine-2.0.6
- old
+ new
@@ -114,11 +114,14 @@
else
timeoutFunction()
interval = setInterval( wait, 250 )
# Logs the error to the console as JSON and exits with status '1'
+hasLoggedError = false
reportError = (msg, trace=[])->
+ return if hasLoggedError
if 0 == trace.length
err = new Error();
trace = err.stack
console.log JSON.stringify({ error: msg, trace: trace })
+ hasLoggedError = true
return phantomExit(1)