diff --git a/src/command_system/errors.py b/src/command_system/errors.py index 992e83ccf93f82c1f217c094394726563ee0a5ae..9451a8110d856c522e238f72b970df84ccf6ec74 100644 --- a/src/command_system/errors.py +++ b/src/command_system/errors.py @@ -20,13 +20,15 @@ class BaseError(Exception): """ def __init__(self, message, command=None, name=None): + self.message = message + self.command = command self.name = name if command and not name: self.name = command.first_name - super(BaseError, self).__init__(message) + super(BaseError, self).__init__() class DefinitionError(BaseError): """