ember-cli
Version:
Command line tool for developing ambitious ember.js apps
19 lines (14 loc) • 411 B
JavaScript
;
function SilentError(message) {
this.name = 'SilentError';
this.message = message;
if (process.env.EMBER_VERBOSE_ERRORS === 'true') {
this.stack = (new Error()).stack;
this.suppressStacktrace = false;
} else {
this.suppressStacktrace = true;
}
}
SilentError.prototype = Error.prototype;
SilentError.prototype.constructor = SilentError;
module.exports = SilentError;