appstore: networkError is an aggreate error
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ exports = module.exports = BoxError;
|
||||
function BoxError(reason, errorOrMessage, extra) {
|
||||
assert.strictEqual(typeof reason, 'string');
|
||||
assert(errorOrMessage instanceof Error || typeof errorOrMessage === 'string');
|
||||
assert(typeof override === 'object' || typeof override === 'undefined');
|
||||
assert(typeof extra === 'object' || typeof extra === 'undefined');
|
||||
|
||||
Error.call(this);
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
|
||||
Reference in New Issue
Block a user