summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-05-12 16:09:08 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-05-12 18:25:17 +0900
commit27a0254faee23d8328ee5e0add06956abb4c67bb (patch)
tree8bc2574ff596365724f80c71c8a1f23b8e6ef193
parent5e7c2f9ab6c79323e2f99394b30e7b18f886d4bb (diff)
downloadbuildstream-27a0254faee23d8328ee5e0add06956abb4c67bb.tar.gz
_exceptions: Allow passing a `detail` string to `PluginError`.
-rw-r--r--buildstream/_exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_exceptions.py b/buildstream/_exceptions.py
index d4ab1ea52..8f3f17b9d 100644
--- a/buildstream/_exceptions.py
+++ b/buildstream/_exceptions.py
@@ -137,8 +137,8 @@ class BstError(Exception):
# or by the base :class:`.Plugin` element itself.
#
class PluginError(BstError):
- def __init__(self, message, reason=None, temporary=False):
- super().__init__(message, domain=ErrorDomain.PLUGIN, reason=reason, temporary=False)
+ def __init__(self, message, *, detail=None, reason=None, temporary=False):
+ super().__init__(message, domain=ErrorDomain.PLUGIN, detail=detail, reason=reason, temporary=False)
# LoadErrorReason