Skip to content

Commit

Permalink
fix: Never fail silently on auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricmessiant committed Mar 19, 2019
1 parent 0b0ac10 commit 968583e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ async function start(fields, { doRetry = true }) {
fields.access_token = body.attributes.oauth.access_token
return start(fields, false)
}
} else {
log('error', `Error during authentication ${err.message}`)
throw errors.VENDOR_DOWN
}

log('error', `Error during authentication: ${err.message}`)
throw errors.VENDOR_DOWN
} else {
log('error', 'caught an unexpected error')
log('error', err.message)
Expand Down

0 comments on commit 968583e

Please sign in to comment.