mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
dispatch.c: changed api_set_error_call
This commit is contained in:
parent
ed02278e42
commit
099718ae6d
@ -40,10 +40,8 @@ MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name,
|
||||
map_get(String, MsgpackRpcRequestHandler)(methods, m);
|
||||
|
||||
if (!rv.fn) {
|
||||
String method_name = m.size > 0 ?
|
||||
m : cstr_as_string("<empty>");
|
||||
api_set_error(error, kErrorTypeException, "Invalid method: %s",
|
||||
method_name);
|
||||
m.size > 0 ? m.data : "<empty>");
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user