Skip to content

Commit

Permalink
Merge pull request #366 from noseglid/linter-no-row-or-col
Browse files Browse the repository at this point in the history
Linter report no row or col
  • Loading branch information
noseglid committed Mar 28, 2016
2 parents 5d5584d + e66123a commit 4de59ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ export default {
type: 'Error',
text: match.message || 'Error from build',
filePath: match.file,
range: [[match.line - 1, match.col - 1], [match.line - 1, match.col - 1]]
range: [
[ (match.line || 1) - 1, (match.col || 1) - 1 ],
[ (match.line || 1) - 1, (match.col || 1) - 1]
]
})));

this.buildView.buildFinished(success);
Expand Down

0 comments on commit 4de59ad

Please sign in to comment.