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);
|
const resp = await needle(meth, uri, data, opts, ...rest);
|
||||||
if(!/^[23]\d\d/.test(resp.statusCode.toString())) {
|
if(!/^[23]\d\d/.test(resp.statusCode.toString())) {
|
||||||
const failure = {
|
const failure = {
|
||||||
|
method: meth,
|
||||||
|
uri,
|
||||||
|
data,
|
||||||
statusCode: resp.statusCode,
|
statusCode: resp.statusCode,
|
||||||
statusMessage: resp.statusMessage,
|
statusMessage: resp.statusMessage,
|
||||||
body: resp.body
|
body: resp.body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user