incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r983023 - /incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
Date Fri, 06 Aug 2010 15:28:36 GMT
Author: mfojtik
Date: Fri Aug  6 15:28:36 2010
New Revision: 983023

URL: http://svn.apache.org/viewvc?rev=983023&view=rev
Log:
Remove the begin..rescue block from gogrid_client request.

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 <clalance@redhat.com>

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb?rev=983023&r1=983022&r2=983023&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb Fri Aug
 6 15:28:36 2010
@@ -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)



Mime
View raw message