summaryrefslogtreecommitdiffstats
path: root/keystone/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-20 22:12:02 +0000
committerGerrit Code Review <review@openstack.org>2012-11-20 22:12:02 +0000
commit07c1aafdf20db6d6d7c0d3e15074bc02e2f1d2aa (patch)
tree0079233bf49c436afe744149d621d6e08923bd82 /keystone/common
parentd8aa7fd3429dce76670c5e91df76c106a96ae0cf (diff)
parent01fccdb1ccc7f7e42b6487b42b6946db98fb8c44 (diff)
Merge "Expose auth failure details in debug mode"
Diffstat (limited to 'keystone/common')
-rw-r--r--keystone/common/wsgi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py
index 39529bc9..8d886902 100644
--- a/keystone/common/wsgi.py
+++ b/keystone/common/wsgi.py
@@ -246,8 +246,8 @@ class Application(BaseApplication):
try:
user_token_ref = self.token_api.get_token(
context=context, token_id=context['token_id'])
- except exception.TokenNotFound:
- raise exception.Unauthorized()
+ except exception.TokenNotFound as e:
+ raise exception.Unauthorized(e)
creds = user_token_ref['metadata'].copy()