Commit 81ec3635 authored by Tristan Van Berkom's avatar Tristan Van Berkom

_exceptions.py: Allow detail strings in LoadError exceptions

parent 1280b449
......@@ -201,8 +201,8 @@ class LoadErrorReason(Enum):
# interpreting project YAML
#
class LoadError(BstError):
def __init__(self, reason, message):
super().__init__(message, domain=ErrorDomain.LOAD, reason=reason)
def __init__(self, reason, message, *, detail=None):
super().__init__(message, detail=detail, domain=ErrorDomain.LOAD, reason=reason)
# ImplError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment