mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Log the connection error message produced by the request
This commit is contained in:
parent
bbb1f0f0f3
commit
e5856bf6bc
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@ class AuthorizationHelpers:
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
return self.parseTokenResponse(requests.post(self._token_url, data = data)) # type: ignore
|
return self.parseTokenResponse(requests.post(self._token_url, data = data)) # type: ignore
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError as connection_error:
|
||||||
return AuthenticationResponse(success=False, err_message="Unable to connect to remote server")
|
return AuthenticationResponse(success = False, err_message = f"Unable to connect to remote server: {connection_error}")
|
||||||
|
|
||||||
def getAccessTokenUsingRefreshToken(self, refresh_token: str) -> "AuthenticationResponse":
|
def getAccessTokenUsingRefreshToken(self, refresh_token: str) -> "AuthenticationResponse":
|
||||||
"""Request the access token from the authorization server using a refresh token.
|
"""Request the access token from the authorization server using a refresh token.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue