send reason code as part of details
This commit is contained in:
@@ -143,7 +143,7 @@ function AppsError(reason, errorOrMessage, details) {
|
||||
this.nestedError = errorOrMessage;
|
||||
}
|
||||
|
||||
if (details) error.details = details;
|
||||
this.details = _.extend({ reason }, details || {});
|
||||
}
|
||||
util.inherits(AppsError, Error);
|
||||
AppsError.INTERNAL_ERROR = 'Internal Error';
|
||||
|
||||
Reference in New Issue
Block a user