Skip to content

Commit

Permalink
Less information returned with IntegrityError
Browse files Browse the repository at this point in the history
Fixes bug: #1039552

Change-Id: Ie91ff09cadbbf24dc88b013581ebdd4a37c3b6b0
  • Loading branch information
trid committed Aug 21, 2012
1 parent d04e99a commit dcb1e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keystone/identity/backends/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def wrapper(*args, **kwargs):
try:
return method(*args, **kwargs)
except sql.IntegrityError as e:
raise exception.Conflict(type=type, details=str(e))
raise exception.Conflict(type=type, details=e.message)
return wrapper
return decorator

Expand Down

0 comments on commit dcb1e84

Please sign in to comment.