debugging

This commit is contained in:
Chris Troutner
2021-03-11 08:48:22 -08:00
parent be6550686f
commit ef49b85495
+2 -2
View File
@@ -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)