From 85ea999996fedd723ba45412b685b71441843bf9 Mon Sep 17 00:00:00 2001 From: Ventilaar Date: Sat, 2 Apr 2022 22:56:07 +0200 Subject: [PATCH] be more verbose --- eindopdracht/dns_gui/openid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eindopdracht/dns_gui/openid.py b/eindopdracht/dns_gui/openid.py index cf9cb2a..6ba5d65 100644 --- a/eindopdracht/dns_gui/openid.py +++ b/eindopdracht/dns_gui/openid.py @@ -30,7 +30,7 @@ class GoogleOID: r = self.requests.post('https://oauth2.googleapis.com/token', data=data) # exchange code for token if r.status_code != 200: # if not successful - return {'error': True, 'reason': f'Could not exchange code for access key'} + return {'error': True, 'reason': f'Could not exchange code for access key {r.status_code}'} return {'error': False, 'data': r.json()} @@ -40,7 +40,7 @@ class GoogleOID: r = self.requests.get('https://openidconnect.googleapis.com/v1/userinfo', headers=headers) if r.status_code != 200: # if not successful - return {'error': True, 'reason': 'Could not get profile info'} + return {'error': True, 'reason': f'Could not get profile info {r.status_code}'} return {'error': False, 'profile': r.json()}