okfn/ckan — pull request #1224 by joetsoi (2013-09-04 16:00:55+00:00)
Title: propogate NotAuthorized exception message

http://docs.ckan.org/en/943-writing-extensions-tutorial/writing-extensions.html#plugin-interfaces-reference

Tutorial overrides IAuth with a message saying "No one can create groups" but you can see when it's tested later the message returned is "Not Authorized". It's strange that the exception.extra_msg was propogated for NotFound but not NotAuthorized, there's probably a good reason that I can't think of.

This pr propogates the message up but we could also just change the doc string and tutorial.