forked from enviPath/enviPy
Current Dev State
This commit is contained in:
13
static/js/ketcher2/node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/gulp-uglify/lib/gulp-uglify-error.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'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 : '');
|
||||
};
|
||||
|
||||
module.exports = gulpUglifyError;
|
||||
Reference in New Issue
Block a user