From eccee7104976704758fd326ef97a148a11223832 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 20 Feb 2014 21:50:27 +0100 Subject: [PATCH] Catch another non-standard error --- lib/rbot/plugins.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 493f177f..b8a30f73 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -600,6 +600,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 -- 2.32.0.93.g670b81a890