diff options
author | Carlos Castillo <carlos.d.castillo@gmail.com> | 2015-02-23 03:58:26 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-03-04 00:21:55 -0500 |
commit | a4c3ac2799281b56c1c38d0fdc584e22ac1b3d2f (patch) | |
tree | 432f432337a4e8f32efde335eece6eb9f884ede5 /src | |
parent | 5be040ffe4499b6b924f810b5a30c54307a9cf38 (diff) | |
download | rneovim-a4c3ac2799281b56c1c38d0fdc584e22ac1b3d2f.tar.gz rneovim-a4c3ac2799281b56c1c38d0fdc584e22ac1b3d2f.tar.bz2 rneovim-a4c3ac2799281b56c1c38d0fdc584e22ac1b3d2f.zip |
remote_ui: Fix error messages #2045
Make the error messages more precise and uniform.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/msgpack_rpc/remote_ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/msgpack_rpc/remote_ui.c b/src/nvim/msgpack_rpc/remote_ui.c index 361e93a6da..45b3dee0fd 100644 --- a/src/nvim/msgpack_rpc/remote_ui.c +++ b/src/nvim/msgpack_rpc/remote_ui.c @@ -66,8 +66,8 @@ static Object remote_ui_attach(uint64_t channel_id, uint64_t request_id, || args.items[2].type != kObjectTypeBoolean || args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) { api_set_error(error, Validation, - _("Arguments must be a pair of positive integers " - "representing the remote screen width/height")); + _("Invalid arguments. Expected: " + "(uint width > 0, uint height > 0, bool enable_rgb)")); return NIL; } UIData *data = xmalloc(sizeof(UIData)); @@ -127,8 +127,8 @@ static Object remote_ui_try_resize(uint64_t channel_id, uint64_t request_id, || args.items[1].type != kObjectTypeInteger || args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) { api_set_error(error, Validation, - _("Arguments must be a pair of positive integers " - "representing the remote screen width/height")); + _("Invalid arguments. Expected: " + "(uint width > 0, uint height > 0)")); return NIL; } |