base: add url to client error message
This commit is contained in:
parent
2b1e2d695a
commit
bcc4dfe745
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ export default class Client {
|
|||
}
|
||||
if (!options.getRaw && output.status && typeof(output.status) === 'number') {
|
||||
let err = new Error(`Request failed [${output.status}]: ${output.message}`)
|
||||
err.url = path
|
||||
err.body = output
|
||||
return reject(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue