aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-23 21:54:44 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-23 23:44:57 +0200
commit3fbc660d57f4726044662bde1bf52c527e45fb98 (patch)
treec75b91729467654d41d99dd8ab2e4f0d7556e79d /src/nvim/msgpack_rpc/channel.c
parent2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3 (diff)
downloadrneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.tar.gz
rneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.tar.bz2
rneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.zip
api_set_error(): rename
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index 36a3210c70..3cf85316d9 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -192,7 +192,7 @@ Object channel_send_call(uint64_t id,
Channel *channel = NULL;
if (!(channel = pmap_get(uint64_t)(channels, id)) || channel->closed) {
- _api_set_error(err, kErrorTypeException, _("Invalid channel \"%" PRIu64 "\""), id);
+ api_set_error(err, kErrorTypeException, _("Invalid channel \"%" PRIu64 "\""), id);
api_free_array(args);
return NIL;
}
@@ -212,7 +212,7 @@ Object channel_send_call(uint64_t id,
if (frame.errored) {
if (frame.result.type == kObjectTypeString) {
- _api_set_error(err, kErrorTypeException, "%s", frame.result.data.string.data);
+ api_set_error(err, kErrorTypeException, "%s", frame.result.data.string.data);
} else if (frame.result.type == kObjectTypeArray) {
// Should be an error in the form [type, message]
Array array = frame.result.data.array;
@@ -220,13 +220,13 @@ Object channel_send_call(uint64_t id,
&& (array.items[0].data.integer == kErrorTypeException
|| array.items[0].data.integer == kErrorTypeValidation)
&& array.items[1].type == kObjectTypeString) {
- _api_set_error(err, (ErrorType)array.items[0].data.integer, "%s",
+ api_set_error(err, (ErrorType)array.items[0].data.integer, "%s",
array.items[1].data.string.data);
} else {
- _api_set_error(err, kErrorTypeException, "%s", "unknown error");
+ api_set_error(err, kErrorTypeException, "%s", "unknown error");
}
} else {
- _api_set_error(err, kErrorTypeException, "%s", "unknown error");
+ api_set_error(err, kErrorTypeException, "%s", "unknown error");
}
api_free_object(frame.result);
@@ -512,7 +512,7 @@ static bool channel_write(Channel *channel, WBuffer *buffer)
static void send_error(Channel *channel, uint64_t id, char *err)
{
Error e = ERROR_INIT;
- _api_set_error(&e, kErrorTypeException, "%s", err);
+ api_set_error(&e, kErrorTypeException, "%s", err);
channel_write(channel, serialize_response(channel->id,
id,
&e,