diff options
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r-- | lib/rest-client-wrapper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb index 7011eca..f4febb5 100644 --- a/lib/rest-client-wrapper.rb +++ b/lib/rest-client-wrapper.rb @@ -71,6 +71,7 @@ module OpenTox cause = content[RDF::OT.errorCause].to_s raise if msg.size==0 && cause.size==0 # parsing failed rescue # parsing error failed, use complete content as message + uri = uri.gsub(/(http|https)\:\/\/[a-zA-Z0-9\-]+\:[a-zA-Z0-9]+\@/, "***@") msg = "Could not parse error response from rest call '#{method}' to '#{uri}':\n#{response}" cause = nil end |