Some of the callers want to be able to handle exceptions in their own way, so we should make sure to propagate the exception.
Signed-off-by: Chris Lalancette <[email protected]> --- .../lib/deltacloud/drivers/gogrid/gogrid_client.rb | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb b/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb index 70e0cfc..f4f5796 100644 --- a/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb +++ b/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb @@ -31,11 +31,7 @@ class GoGridClient end def request(method, params={}) - begin - JSON::parse(sendAPIRequest(method, params)) - rescue Exception => e - STDERR.puts("ERROR: #{e.message}") - end + JSON::parse(sendAPIRequest(method, params)) end def encode_params(params) -- 1.6.6.1 _______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
