summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 21:59:40 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 22:40:39 +0900
commita79cc0d0b7aca88dda86dc4c5d6353e647e30ab2 (patch)
treeb0060101ca0ffcbda0b1a39d495a6f9d7ae6c259
parent9e23c2856095bb919cc60f31bfbc28b404a8e9d3 (diff)
downloadbuildstream-a79cc0d0b7aca88dda86dc4c5d6353e647e30ab2.tar.gz
element.py: Allow specifying detailed message in ElementError()
-rw-r--r--buildstream/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index 8c7fad71d..18a23e915 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -86,9 +86,10 @@ class ElementError(BstError):
Args:
message (str): The error message 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):
+ def __init__(self, message, *, detail=None, reason=None):
super().__init__(message, domain=ErrorDomain.ELEMENT, reason=reason)