From ba2f5c56cb7bb93e41e1bb6b4a447fd8d1d5955f Mon Sep 17 00:00:00 2001 From: Micha Rautenberg Date: Fri, 30 Oct 2015 12:58:17 +0100 Subject: error methods do only accept 1 argument --- lib/rest-client-wrapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb index de1b74f..60775e3 100644 --- a/lib/rest-client-wrapper.rb +++ b/lib/rest-client-wrapper.rb @@ -72,7 +72,7 @@ module OpenTox msg = "Could not parse error response from rest call '#{method}' to '#{uri}':\n#{response}" cause = nil end - Object.method(error[:method]).call msg, uri, cause # call error method + Object.method(error[:method]).call "#{msg}, #{uri}, #{cause}" # call error method else response end -- cgit v1.2.3