Added try/catch block around access token request and added "errors" field (if it exists) from response json to error msg.