From 406d7b17902570de9efa57870884bf76f68226a5 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" --- SedRegex/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SedRegex/plugin.py b/SedRegex/plugin.py index cda81ad..c3e5952 100644 --- a/SedRegex/plugin.py +++ b/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)