mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
dispatch.c: changed api_set_error_call
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user