diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-11 21:54:36 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-11 21:54:36 +0900 |
commit | ab303aa6e4da0ede0de0521522c4389e6f6a03c8 (patch) | |
tree | fd535e215d247cef209edfe4b67f7ec8ddbeff66 /buildstream/plugin.py | |
parent | fdb2aaf6e13e07eee10cf6a0d49ff319e3e4ce9f (diff) | |
download | buildstream-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.
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r-- | buildstream/plugin.py | 9 |
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 |