UNPKG

child-process-promise

Version:

Simple wrapper around the "child_process" module that makes use of promises

18 lines (13 loc) 417 B
'use strict'; class ChildProcessError extends Error { constructor(message, code, childProcess, stdout, stderr) { super(message); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.code = code; this.childProcess = childProcess; this.stdout = stdout; this.stderr = stderr; } } module.exports = ChildProcessError;