From dc9092ab1a2953c282b1add4a2500467eb9e3c9d Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Tue, 3 Feb 2009 00:31:55 +0000 Subject: [PATCH] THRIFT-298. ruby: Exception propagation seems broken for Ruby clients This patch fixes the problem. How is anyone's guess, but we'll simplify all this code in the future. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@740161 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/lib/thrift/struct.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rb/lib/thrift/struct.rb b/lib/rb/lib/thrift/struct.rb index 8b6c0be7..abed860e 100644 --- a/lib/rb/lib/thrift/struct.rb +++ b/lib/rb/lib/thrift/struct.rb @@ -173,7 +173,7 @@ module Thrift # this will set our field default values method(:struct_initialize).call() # now give it to the exception - self.class.send(:class_variable_get, :'@@__thrift_struct_real_initialize').bind(self).call(*args, &block) + self.class.send(:class_variable_get, :'@@__thrift_struct_real_initialize').bind(self).call(*args, &block) if args.size > 0 # self.class.instance_method(:initialize).bind(self).call(*args, &block) end end -- 2.17.1