fix tests
This commit is contained in:
parent
ada7ae65ad
commit
30db636389
3 changed files with 7 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ function humanizeErrors(errors) {
|
|||
export function StatusCodeError(statusCode, body, options, response) {
|
||||
this.name = 'StatusCodeError'
|
||||
this.statusCode = statusCode
|
||||
this.statusText = body.error.error || body.error
|
||||
this.statusText = body.error || body
|
||||
this.details = JSON && JSON.stringify ? JSON.stringify(body) : body
|
||||
this.errorData = body.error
|
||||
this.message = this.statusCode + ' - ' + this.statusText
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue