Better reporting when the user is not logged in.

This commit is contained in:
2016-04-01 14:11:30 +02:00
parent 1bb32033b6
commit 5396fd765d
2 changed files with 12 additions and 1 deletions

View File

@@ -27,6 +27,9 @@ class UserNotLoggedInError(RuntimeError):
This is basically for every interaction with Pillar.
"""
def __str__(self):
return 'UserNotLoggedInError'
class PillarError(RuntimeError):
"""Raised when there is some issue with the communication with Pillar.