Skip to content

Commit

Permalink
Fixed an issue with errors not being displayed in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed Jul 15, 2015
1 parent 0692262 commit 83b1451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runner/cli/errorhandler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var Logger = require('../../util/logger.js');

module.exports = {
var ErrorHandler = module.exports = {
handle : function(err, results, finished) {
finished = finished || function() {};

Expand All @@ -14,7 +14,7 @@ module.exports = {
err.message = 'There was an error while running the test.';
}

this.logError(err);
ErrorHandler.logError(err);

finished(false);
process.exit(1);
Expand Down

0 comments on commit 83b1451

Please sign in to comment.