lib/onering/cli/call.rb in onering-client-0.0.59 vs lib/onering/cli/call.rb in onering-client-0.0.60
- old
+ new
@@ -32,10 +32,10 @@
rv = @api.request(@opts[:method], args.first, {
:body => data
}.compact)
- return (rv.parsed_response || rv.response.body)
+ return (rv.parsed_response rescue rv.response.body)
end
end
end
end
\ No newline at end of file