erlang: Make the gen-code return a special value for bogus functions

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2010-08-30 22:05:27 +00:00
parent 480d5ab62b
commit eb207273ea

View File

@ -649,8 +649,8 @@ void t_erl_generator::generate_service_interface(t_service* tservice) {
<< "_thrift:function_info(Function, InfoType)." << endl;
indent_down();
} else {
// Dummy function_info so we don't worry about the ;s
indent(f_service_) << "function_info(xxx, dummy) -> dummy." << endl;
// Use a special return code for nonexistent functions
indent(f_service_) << "function_info(_Func, _Info) -> no_function." << endl;
}
indent(f_service_) << endl;