Repository: thrift Updated Branches: refs/heads/master e9651367c -> 3c489f9e7
THRIFT-2418 Go handler function panics on internal error Patch: Frank Schroeder Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/3c489f9e Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/3c489f9e Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/3c489f9e Branch: refs/heads/master Commit: 3c489f9e7fbef6d3a169fa585b7f244bca1a3be5 Parents: e965136 Author: Jens Geyer <[email protected]> Authored: Thu Mar 20 23:03:48 2014 +0200 Committer: Jens Geyer <[email protected]> Committed: Thu Mar 20 23:03:48 2014 +0200 ---------------------------------------------------------------------- compiler/cpp/src/generate/t_go_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/3c489f9e/compiler/cpp/src/generate/t_go_generator.cc ---------------------------------------------------------------------- diff --git a/compiler/cpp/src/generate/t_go_generator.cc b/compiler/cpp/src/generate/t_go_generator.cc index dadef5c..168ca88 100644 --- a/compiler/cpp/src/generate/t_go_generator.cc +++ b/compiler/cpp/src/generate/t_go_generator.cc @@ -2369,7 +2369,7 @@ void t_go_generator::generate_process_function(t_service* tservice, } f_service_ << - indent() << " x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, \"Internal error processing " << escape_string(tfunction->get_name()) << ": \" + err.Error())" << endl << + indent() << " x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, \"Internal error processing " << escape_string(tfunction->get_name()) << ": \" + err2.Error())" << endl << indent() << " oprot.WriteMessageBegin(\"" << escape_string(tfunction->get_name()) << "\", thrift.EXCEPTION, seqId)" << endl << indent() << " x.Write(oprot)" << endl << indent() << " oprot.WriteMessageEnd()" << endl <<
