summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 21:54:36 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-11 23:15:44 +0900
commit8d4e1634f64f9b6acc3a3672ef519c206115f832 (patch)
tree7bdad13a85c7e4c6c2b5c557e7c93ca72a0c6ad5
parent40a6a9554824ee18c95be4a545a7f20a9cb25f8d (diff)
downloadbuildstream-8d4e1634f64f9b6acc3a3672ef519c206115f832.tar.gz
plugin.py: Removing Plugin.error() while it's still early and nobody is using it.
Errors are fatal, as such plugins must raise either SourceError() or ElementError(). This method was never used in plugins so far, lets remove it even though we are technically breaking (unused) API for the overall betterment of the API.
-rw-r--r--buildstream/plugin.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index a6baff804..cd0895f91 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -404,15 +404,6 @@ class Plugin():
"""
self.__message(MessageType.WARN, brief, detail=detail)
- def error(self, brief, *, detail=None):
- """Print an error message
-
- Args:
- brief (str): The brief message
- detail (str): An optional detailed message, can be multiline output
- """
- self.__message(MessageType.ERROR, brief, detail=detail)
-
def log(self, brief, *, detail=None):
"""Log a message into the plugin's log file