Skip to content

Commit

Permalink
SedRegex: log the exact error name instead of "SedRegex error"
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lu authored and James Lu committed Dec 26, 2016
1 parent aa21751 commit 406d7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SedRegex/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def replacer(self, irc, msg, regex):
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)
Expand Down

0 comments on commit 406d7b1

Please sign in to comment.