Skip to content
Unverified Commit f9f98cb3 authored by Josh Bielick's avatar Josh Bielick Committed by GitHub
Browse files

print full error message when non-api error (#474)



when type asserting fails here, err is reassigned with nil and the
default block of the switch prints out <nil> in the error message. This
makes debugging a configuration or access token issue difficult

The particular error this surfaces is:

Response: {
  "error": "unauthorized_client",
  "error_description": "Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested."
}

Signed-off-by: default avatarJosh Bielick <jbielick@gmail.com>
parent c7bfbdec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment