diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-07 10:56:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 10:56:44 +0200 |
commit | 3abf17ae88e3048c20b1645b9d78b69566e89872 (patch) | |
tree | febd1791bc04f577fd84563bb0eae7512a1b8957 /src/nvim/msgpack_rpc/helpers.c | |
parent | 5a82afa17aa7dec33af2f9c67e7786e7b5e9e8bb (diff) | |
download | rneovim-3abf17ae88e3048c20b1645b9d78b69566e89872.tar.gz rneovim-3abf17ae88e3048c20b1645b9d78b69566e89872.tar.bz2 rneovim-3abf17ae88e3048c20b1645b9d78b69566e89872.zip |
API: validation: mention invalid method name (#8489)
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index fecae11d45..e18c4472b5 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -493,7 +493,8 @@ Object msgpack_rpc_handle_missing_method(uint64_t channel_id, Array args, Error *error) { - api_set_error(error, kErrorTypeException, "Invalid method name"); + api_set_error(error, kErrorTypeException, "Invalid method: %s", + args.size > 0 ? args.items[0].data.string.data : "?"); return NIL; } |