initial commit
This commit is contained in:
16
node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
16
node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
var makeErrorCause = require('make-error-cause');
|
||||
|
||||
var gulpUglifyError = makeErrorCause('GulpUglifyError');
|
||||
gulpUglifyError.prototype.toString = function() {
|
||||
var cause = this.cause || {};
|
||||
|
||||
return (
|
||||
makeErrorCause.BaseError.prototype.toString.call(this) +
|
||||
(this.fileName ? '\nFile: ' + this.fileName : '') +
|
||||
(cause.line ? '\nLine: ' + cause.line : '') +
|
||||
(cause.col ? '\nCol: ' + cause.col : '')
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = gulpUglifyError;
|
||||
Reference in New Issue
Block a user