Skip to content

Commit

Permalink
feat(error): add column to error string
Browse files Browse the repository at this point in the history
If the error from UglifyJS contains column information, append this to
the error message.

[[email protected]: rewrote commit message]
Signed-off-by: Terin Stock <[email protected]>
  • Loading branch information
mems authored and terinjokes committed Jul 10, 2018
1 parent e2462fa commit 95f17a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gulp-uglify-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ gulpUglifyError.prototype.toString = function() {
return (
makeErrorCause.BaseError.prototype.toString.call(this) +
(this.fileName ? '\nFile: ' + this.fileName : '') +
(cause.line ? '\nLine: ' + cause.line : '')
(cause.line ? '\nLine: ' + cause.line : '') +
(cause.col ? '\nCol: ' + cause.col : '')
);
};

Expand Down

0 comments on commit 95f17a5

Please sign in to comment.