From: David Reiss Date: Mon, 30 Aug 2010 22:05:36 +0000 (+0000) Subject: erlang: Don't catch exits in thrift_processor X-Git-Tag: 0.5.0~121 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b9561c83f530915c1597cfa9b1c341e88c0971fc;p=common%2Fthrift.git erlang: Don't catch exits in thrift_processor They are not handled properly, so the exit backtrace gets lost. Just ignore them and let them kill the process naturally. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990984 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_processor.erl b/lib/erl/src/thrift_processor.erl index 913e59b8..4ae0fd74 100644 --- a/lib/erl/src/thrift_processor.erl +++ b/lib/erl/src/thrift_processor.erl @@ -69,7 +69,7 @@ handle_function(State=#thrift_processor{in_protocol = IProto, %% [Function, Params, Micro/1000.0]), handle_success(State, Function, Result) catch - Type:Data -> + Type:Data when Type =:= throw orelse Type =:= error -> handle_function_catch(State, Function, Type, Data) end, after_reply(OProto).