don't do statuscodeerror if error isn't related to non-ok statuscode
This commit is contained in:
parent
a294de1248
commit
d10f1c72c7
1 changed files with 1 additions and 2 deletions
|
|
@ -132,8 +132,7 @@ export const promisedRequest = async ({
|
|||
)
|
||||
}
|
||||
} catch (error) {
|
||||
throw new StatusCodeError(
|
||||
response.status,
|
||||
throw new Error(
|
||||
error,
|
||||
{ url, options },
|
||||
response,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue