lib/omcms/middleware/parse_response.rb in omcms-ruby-client-1.0.1 vs lib/omcms/middleware/parse_response.rb in omcms-ruby-client-1.0.2

- old
+ new

@@ -10,8 +10,10 @@ return OMCMS::Response::Error.new(response_env) else return response_env.body end end + rescue => error + return OMCMS::Response::Error.new(error) end end end