From 5370296bbf9c864c3a0cab12afb5dd18a4e1b6ea Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 26 Dec 2016 08:04:20 -0800 Subject: [PATCH] SedRegex: log the exact error name instead of "SedRegex error" From: https://github.com/jlu5/SupyPlugins/commit/406d7b17902570de9efa57870884bf76f68226a5 --- plugins/SedRegex/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SedRegex/plugin.py b/plugins/SedRegex/plugin.py index cda81ad19..c3e59527b 100644 --- a/plugins/SedRegex/plugin.py +++ b/plugins/SedRegex/plugin.py @@ -114,7 +114,7 @@ class SedRegex(callbacks.PluginRegexp): except (ValueError, re.error) as e: self.log.warning(_("SedRegex error: %s"), e) if self.registryValue('displayErrors', msg.args[0]): - irc.error(_("SedRegex error: %s" % e), Raise=True) + irc.error('%s.%s: %s' % (e.__class__.__module__, e.__class__.__name__, e)) return next(iterable)