Skip to content

Commit 2d3372f

Browse files
committed
refactor: include server-sided errors
1 parent 1d3e157 commit 2d3372f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logic/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def authenticate_account(user_data: dict) -> dict:
4848
try:
4949
response = json.loads(response.decode())
5050
except Exception as e:
51-
raise ValueError("Error while parsing server JSON response: ")
51+
raise ValueError("Error while parsing server JSON response: " + str(e))
5252

5353
if not 'challenge' in response:
5454
raise ValueError("Server did not give authenticatation challenge! Are you sure this is a Coldwire server ?")

0 commit comments

Comments
 (0)