diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-11 21:59:57 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-11 22:40:39 +0900 |
commit | 8efdbad3f57e3f2d15acb4d628bd9edaff2037b2 (patch) | |
tree | dd46c5fe84247e4614836e81a7119b0ff887058b | |
parent | a79cc0d0b7aca88dda86dc4c5d6353e647e30ab2 (diff) | |
download | buildstream-8efdbad3f57e3f2d15acb4d628bd9edaff2037b2.tar.gz |
source.py: Allow specifying detailed message in SourceError()
-rw-r--r-- | buildstream/source.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/buildstream/source.py b/buildstream/source.py index 5f41fa1a1..f83c60ce1 100644 --- a/buildstream/source.py +++ b/buildstream/source.py @@ -58,11 +58,12 @@ class SourceError(BstError): to report errors to the user. Args: - message (str): The error message to report to the user + message (str): The breif error description to report to the user + detail (str): A possibly multiline, more detailed error message reason (str): An optional machine readable reason string, used for test cases """ - def __init__(self, message, *, reason=None): - super().__init__(message, domain=ErrorDomain.SOURCE, reason=reason) + def __init__(self, message, *, detail=None, reason=None): + super().__init__(message, detail=detail, domain=ErrorDomain.SOURCE, reason=reason) class Source(Plugin): |