diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/npm-run-all/lib/npm-run-all-error.js | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/npm-run-all/lib/npm-run-all-error.js')
-rw-r--r-- | node_modules/npm-run-all/lib/npm-run-all-error.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/node_modules/npm-run-all/lib/npm-run-all-error.js b/node_modules/npm-run-all/lib/npm-run-all-error.js deleted file mode 100644 index af08b09..0000000 --- a/node_modules/npm-run-all/lib/npm-run-all-error.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @module npm-run-all-error - * @author Toru Nagashima - * @copyright 2016 Toru Nagashima. All rights reserved. - * See LICENSE file in root directory for full license. - */ -"use strict" - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Error object with some additional info. - */ -module.exports = class NpmRunAllError extends Error { - /** - * Constructor. - * - * @param {{name: string, code: number}} causeResult - - * The result item of the npm-script which causes an error. - * @param {Array.<{name: string, code: (number|undefined)}>} allResults - - * All result items of npm-scripts. - */ - constructor(causeResult, allResults) { - super(`"${causeResult.task}" exited with ${causeResult.code}.`) - - /** - * The name of a npm-script which exited with a non-zero code. - * @type {string} - */ - this.name = causeResult.name - - /** - * The code of a npm-script which exited with a non-zero code. - * This can be `undefined`. - * @type {number} - */ - this.code = causeResult.code - - /** - * All result items of npm-scripts. - * @type {Array.<{name: string, code: (number|undefined)}>} - */ - this.results = allResults - } -} |