errors: Add UserInputError.__str__.
This makes messages look nicer in logs.
This commit is contained in:
parent
c49371c87e
commit
cc8da9392e
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ class UserInputError(Exception):
|
|||
self.strerror = strerror
|
||||
self.user_input = user_input
|
||||
|
||||
def __str__(self):
|
||||
return "{}: {}".format(self.strerror, self.user_input)
|
||||
|
||||
|
||||
class UserInputConfigurationError(UserInputError):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue