Add TASK_ERROR reason code

This commit is contained in:
Girish Ramakrishnan
2019-09-19 23:13:04 -07:00
parent 89ff6be971
commit 2942da78de
2 changed files with 4 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ BoxError.LOGROTATE_ERROR = 'Logrotate Error';
BoxError.NETWORK_ERROR = 'Network Error';
BoxError.NOT_FOUND = 'Not found';
BoxError.REVERSEPROXY_ERROR = 'ReverseProxy Error';
BoxError.TASK_ERROR = 'Task Error';
BoxError.prototype.toPlainObject = function () {
return _.extend({}, { message: this.message, reason: this.reason }, this.details);