diff options
author | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-02 18:40:11 -0400 |
---|---|---|
committer | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2019-08-03 16:50:32 -0400 |
commit | d1c8ed3dfbd26beebb5361045da6a5e1513cb151 (patch) | |
tree | 57d538dfb5504a5b56bed464c9885714dc4647a3 /buildstream | |
parent | d86ac7e182d3da4229ac8c7ed83816172c1e5826 (diff) | |
download | buildstream-d1c8ed3dfbd26beebb5361045da6a5e1513cb151.tar.gz |
plugin.py: Stop printing None for fatal-warnings
Providing warn with detail=None (default) will no longer print None when
a fatal warning is triggered.
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/plugin.py | 1 |
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) |