summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/plugins.rb4
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