aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/helpers.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-23 19:58:13 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-23 23:44:32 +0200
commit2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3 (patch)
treea5448dfc1bd0440167cdfad4e3041ca1548bbf52 /src/nvim/msgpack_rpc/helpers.c
parent62c3f436a96e2102ec5c1e3af974c8e57fe4e76c (diff)
downloadrneovim-2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3.tar.gz
rneovim-2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3.tar.bz2
rneovim-2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3.zip
api/internal: Remove `set` field from Error type.
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r--src/nvim/msgpack_rpc/helpers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c
index c273343b41..800f5edb85 100644
--- a/src/nvim/msgpack_rpc/helpers.c
+++ b/src/nvim/msgpack_rpc/helpers.c
@@ -475,7 +475,7 @@ Object msgpack_rpc_handle_missing_method(uint64_t channel_id,
Array args,
Error *error)
{
- _api_set_error(error, error->type, "Invalid method name");
+ _api_set_error(error, kErrorTypeException, "Invalid method name");
return NIL;
}
@@ -484,7 +484,7 @@ Object msgpack_rpc_handle_invalid_arguments(uint64_t channel_id,
Array args,
Error *error)
{
- _api_set_error(error, error->type, "Invalid method arguments");
+ _api_set_error(error, kErrorTypeException, "Invalid method arguments");
return NIL;
}
@@ -517,7 +517,7 @@ void msgpack_rpc_serialize_response(uint64_t response_id,
msgpack_pack_int(pac, 1);
msgpack_pack_uint64(pac, response_id);
- if (err->set) {
+ if (ERROR_SET(err)) {
// error represented by a [type, message] array
msgpack_pack_array(pac, 2);
msgpack_rpc_from_integer(err->type, pac);