Thrift: Ruby cogeden not creating exception fields properly.

Summary: Generated ruby code did not give exception struct fields a class. This broke the result structs for all functions that threw exceptions.
Reviewed by: mcslee
Test plan: Yes
Revert plan: yes


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
iproctor 2007-07-25 18:50:50 +00:00
parent e168d5e127
commit 5ced286cec

View File

@ -336,7 +336,7 @@ void t_rb_generator::generate_field_data(std::ofstream& out, t_type* field_type,
out << ", :name => '" << field_name << "'";
if (! field_type->is_base_type()) {
if (field_type->is_struct()) {
if (field_type->is_struct() || field_type->is_xception()) {
out << ", :class => " << type_name(((t_struct*)field_type));
} else if (field_type->is_list()) {
out << ", :element => ";