diff options
author | Micha Rautenberg <mr@mrautenberg.de> | 2015-10-30 12:58:17 +0100 |
---|---|---|
committer | Micha Rautenberg <mr@mrautenberg.de> | 2015-10-30 12:58:17 +0100 |
commit | ba2f5c56cb7bb93e41e1bb6b4a447fd8d1d5955f (patch) | |
tree | 873254abbfeeaf37c3ad628cec25b1e1d64a7101 /lib/rest-client-wrapper.rb | |
parent | 03614aca09c66b5f98ccd61bb975f91b592d0e86 (diff) |
error methods do only accept 1 argument
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r-- | lib/rest-client-wrapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |