pulp/pulp — pull request #1389 by jeremycline (2014-12-03 21:31:48+00:00)
Title: 1150128 - The pulp-consumer tool now reports the error message for permission exceptions.

https://bugzilla.redhat.com/show_bug.cgi?id=1150128

I didn't make a second exception for authorization (like the authentication one https://github.com/pulp/pulp/blob/519f6fd55cd09318b908da23205b4dbf88b45873/server/pulp/server/exceptions.py#L117) because I felt that they should both be returning 401 unauthorized and it felt a bit silly to just subclass the authentication class.

What I did do is change the pulp-consumer tool to print the error message rather than always assuming a permissions exception is because of failed authentication.