mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
remote_ui: Fix error messages #2045
Make the error messages more precise and uniform.
This commit is contained in:
parent
5be040ffe4
commit
a4c3ac2799
@ -66,8 +66,8 @@ static Object remote_ui_attach(uint64_t channel_id, uint64_t request_id,
|
|||||||
|| args.items[2].type != kObjectTypeBoolean
|
|| args.items[2].type != kObjectTypeBoolean
|
||||||
|| args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) {
|
|| args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) {
|
||||||
api_set_error(error, Validation,
|
api_set_error(error, Validation,
|
||||||
_("Arguments must be a pair of positive integers "
|
_("Invalid arguments. Expected: "
|
||||||
"representing the remote screen width/height"));
|
"(uint width > 0, uint height > 0, bool enable_rgb)"));
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
UIData *data = xmalloc(sizeof(UIData));
|
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[1].type != kObjectTypeInteger
|
||||||
|| args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) {
|
|| args.items[0].data.integer <= 0 || args.items[1].data.integer <= 0) {
|
||||||
api_set_error(error, Validation,
|
api_set_error(error, Validation,
|
||||||
_("Arguments must be a pair of positive integers "
|
_("Invalid arguments. Expected: "
|
||||||
"representing the remote screen width/height"));
|
"(uint width > 0, uint height > 0)"));
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user