diff options
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
| -rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index 7d0db9a9b8..acfd3fe94f 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -306,6 +306,17 @@ Object msgpack_rpc_handle_missing_method(uint64_t channel_id,    return NIL;  } +/// Handler executed when malformated arguments are passed +Object msgpack_rpc_handle_invalid_arguments(uint64_t channel_id, +                                            uint64_t request_id, +                                            Array args, +                                            Error *error) +{ +  snprintf(error->msg, sizeof(error->msg), "Invalid method arguments"); +  error->set = true; +  return NIL; +} +  /// Serializes a msgpack-rpc request or notification(id == 0)  void msgpack_rpc_serialize_request(uint64_t request_id,                                     String method, | 
