summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/plugin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index 8dbd89cc1..8fbac365a 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -548,6 +548,7 @@ class Plugin():
project = self._get_project()
if project._warning_is_fatal(warning_token):
+ detail = detail if detail else ""
raise PluginError(message="{}\n{}".format(brief, detail), reason=warning_token)
self.__message(MessageType.WARN, brief=brief, detail=detail)