Changed error message to be more generic

This commit is contained in:
Joshua Milas
2017-01-24 11:47:52 -05:00
parent 2821b9a832
commit 9ab4b35f22

View File

@@ -147,7 +147,7 @@ class HubAuth(Configurable):
app_log.warning("No Hub user identified for request") app_log.warning("No Hub user identified for request")
data = None data = None
elif r.status_code == 403: elif r.status_code == 403:
app_log.error("I don't have permission to verify cookies, my auth token may have expired: [%i] %s", r.status_code, r.reason) app_log.error("I don't have permission to check authorization with JupyterHub, my auth token may have expired: [%i] %s", r.status_code, r.reason)
raise HTTPError(500, "Permission failure checking authorization, I may need a new token") raise HTTPError(500, "Permission failure checking authorization, I may need a new token")
elif r.status_code >= 500: elif r.status_code >= 500:
app_log.error("Upstream failure verifying auth token: [%i] %s", r.status_code, r.reason) app_log.error("Upstream failure verifying auth token: [%i] %s", r.status_code, r.reason)