Add ExternalError.description and GraphQLError.debug_info

This commit is contained in:
Mads Marquart
2020-01-15 14:03:35 +01:00
parent e25f53d9a9
commit 28791b2118
6 changed files with 36 additions and 26 deletions

View File

@@ -202,7 +202,7 @@ class Session:
else:
code, msg = get_error_data(r.text, r.url)
raise _exception.ExternalError(
"Login failed. {}, url: {}".format(msg, r.url), code=code
"Login failed at url {}".format(r.url), msg, code=code
)
def is_logged_in(self):