mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-07 04:34:49 -05:00
server: improve version mismatch error message
"1 < 2" is obviously true but not very useful information by itself. Provide a bit more context. Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
This commit is contained in:
parent
fe4d7620dd
commit
4d13366fcc
1 changed files with 4 additions and 4 deletions
|
|
@ -450,11 +450,11 @@ wl_client_connection_data(int fd, uint32_t mask, void *data)
|
|||
resource->version > 0 && resource->version < since) {
|
||||
wl_resource_post_error(client->display_resource,
|
||||
WL_DISPLAY_ERROR_INVALID_METHOD,
|
||||
"invalid method %d (since %d < %d)"
|
||||
", object %s#%u",
|
||||
opcode, resource->version, since,
|
||||
"invalid version for %s#%u.%s (%d, need at least %d)",
|
||||
object->interface->name,
|
||||
object->id);
|
||||
object->id,
|
||||
message->name,
|
||||
resource->version, since);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue