From ef49b85495b3d703f2b0962807ff569b02eb6214 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Thu, 11 Mar 2021 08:48:22 -0800 Subject: [PATCH] debugging --- src/routes/v4/route-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v4/route-utils.js b/src/routes/v4/route-utils.js index d0e902d..9e8262f 100644 --- a/src/routes/v4/route-utils.js +++ b/src/routes/v4/route-utils.js @@ -118,6 +118,8 @@ function getAxiosOptions () { // If there is a failure, obj.msg is false. function decodeError (err) { try { + console.log(`JSON of error: ${JSON.stringify(err, null, 2)}`) + // Attempt to extract the full node error message. if ( err.response && @@ -175,8 +177,6 @@ function decodeError (err) { } } - console.log(`JSON of error: ${JSON.stringify(err, null, 2)}`) - // Handle 429 errors thrown by nginx if (err.error) { console.log('decodeError: err: ', err)