myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3076] trunk/lib/rest.rb: reenabled the exception


From: noreply
Subject: [myexperiment-hackers] [3076] trunk/lib/rest.rb: reenabled the exception catch for API errors
Date: Mon, 6 Aug 2012 10:23:59 +0000 (UTC)

Revision
3076
Author
dgc
Date
2012-08-06 10:23:58 +0000 (Mon, 06 Aug 2012)

Log Message

reenabled the exception catch for API errors

Modified Paths

Diff

Modified: trunk/lib/rest.rb (3075 => 3076)


--- trunk/lib/rest.rb	2012-08-06 10:15:26 UTC (rev 3075)
+++ trunk/lib/rest.rb	2012-08-06 10:23:58 UTC (rev 3076)
@@ -2257,10 +2257,10 @@
 # Call dispatcher
 
 def rest_call_request(opts)
-# begin
+  begin
     send(opts[:rules]['Function'], opts)
-# rescue
-#   return rest_response(500)
-# end
+  rescue
+    return rest_response(500)
+  end
 end
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]