mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
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:
parent
480d5ab62b
commit
eb207273ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user