Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
Added a guard to check if we have a proper stacktrace. Should fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
geowarin committed Feb 16, 2017
1 parent c84b3e5 commit b445780
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/transformers/esLintError.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict';

const chalk = require('chalk');

function isEslintError (e) {
return e.originalStack
.some(stackframe => stackframe.fileName.indexOf('eslint-loader') > 0);
.some(stackframe => stackframe.fileName && stackframe.fileName.indexOf('eslint-loader') > 0);
}

function transform(error) {
Expand Down

0 comments on commit b445780

Please sign in to comment.