Skip to content

Commit 506e88f

Browse files
committed
Fail message for auth token
1 parent eb56584 commit 506e88f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/api/auth_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def get_auth_token
2020
json_response = get_post_response(uri, post_data)
2121
if json_response.present?
2222
json_response["access_token"]
23+
else
24+
@error = "Failed to get JSON token, received: #{json_response}"
25+
nil
2326
end
2427
end
2528
end

0 commit comments

Comments
 (0)