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

Commit b445780

Browse files
committed
Added a guard to check if we have a proper stacktrace. Should fix #24
1 parent c84b3e5 commit b445780

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/transformers/esLintError.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use strict';
22

3-
const chalk = require('chalk');
4-
53
function isEslintError (e) {
64
return e.originalStack
7-
.some(stackframe => stackframe.fileName.indexOf('eslint-loader') > 0);
5+
.some(stackframe => stackframe.fileName && stackframe.fileName.indexOf('eslint-loader') > 0);
86
}
97

108
function transform(error) {

0 commit comments

Comments
 (0)