Commit 81e3cd18 authored by Jim Fulton's avatar Jim Fulton

Change a raise statement that should never get executed, but does, so

that it gives a more informative error message.
parent 886f011f
...@@ -133,7 +133,11 @@ class RoleManager: ...@@ -133,7 +133,11 @@ class RoleManager:
p=class_permissions[i] p=class_permissions[i]
if p and (p not in perms): if p and (p not in perms):
__traceback_info__=perms, p, i __traceback_info__=perms, p, i
raise 'waaa' raise 'Permission mapping error', (
"""Attempted to map a permission to a permission, %s,
that is not valid. This should never happen. (Waaa).
""" % p)
setPermissionMapping(name, wrapper, p) setPermissionMapping(name, wrapper, p)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment