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) {
|
} catch (error) {
|
||||||
throw new StatusCodeError(
|
throw new Error(
|
||||||
response.status,
|
|
||||||
error,
|
error,
|
||||||
{ url, options },
|
{ url, options },
|
||||||
response,
|
response,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue