Expanded debugging
This commit is contained in:
parent
aa7dce4247
commit
425e716d17
@ -26,6 +26,9 @@ async function fetch(uri, meth, data, opts, ...rest) {
|
||||
const resp = await needle(meth, uri, data, opts, ...rest);
|
||||
if(!/^[23]\d\d/.test(resp.statusCode.toString())) {
|
||||
const failure = {
|
||||
method: meth,
|
||||
uri,
|
||||
data,
|
||||
statusCode: resp.statusCode,
|
||||
statusMessage: resp.statusMessage,
|
||||
body: resp.body
|
||||
|
Loading…
x
Reference in New Issue
Block a user