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 21:54:36 +0900
commitab303aa6e4da0ede0de0521522c4389e6f6a03c8 (patch)
treefd535e215d247cef209edfe4b67f7ec8ddbeff66
parentfdb2aaf6e13e07eee10cf6a0d49ff319e3e4ce9f (diff)
downloadbuildstream-ab303aa6e4da0ede0de0521522c4389e6f6a03c8.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