From 2f1c597e8f5cd5b3799920a64a6601aaee3673f2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 31 Mar 2015 10:01:53 +0200 Subject: [PATCH] print_error method for plugins --- lib/plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins.py b/lib/plugins.py index cb8600193..aad4c1516 100644 --- a/lib/plugins.py +++ b/lib/plugins.py @@ -82,6 +82,9 @@ class BasePlugin: def fullname(self): return self.name + def print_error(self, msg): + print_error("[%s]"%self.name, msg) + def description(self): return 'undefined'