diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2014-02-20 21:50:27 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2021-05-29 16:21:46 +0200 |
commit | fcbe2a81573046c4381d72c1b294002cbd68b47c (patch) | |
tree | 35cae81d9cba21ecb20c3ad2d1612b758d59a2b5 /lib/rbot/plugins.rb | |
parent | 420969ad2211b136140871203185ae8aeba945d1 (diff) |
Catch another non-standard error
Diffstat (limited to 'lib/rbot/plugins.rb')
-rw-r--r-- | lib/rbot/plugins.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 76c76ae1..06cc09e7 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -653,6 +653,10 @@ module Plugins # idiotic approaches if err.class.respond_to? :from_message newerr = err.class.from_message(msg) + elsif ([:file, :line, :column, :offset, :problem, :context] & err.methods).length == 6 + # Another ‘brillian’ overload, this time from Psych::SyntaxError + # In this case we'll just leave the message as-is + newerr = err.dup else raise aerr_in_err end |