diff options
| author | Kirill Primak <vyivel@eclair.cafe> | 2026-03-03 20:32:24 +0300 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2026-03-05 11:18:53 +0000 |
| commit | 4d13366fcc3213f197074a3f716aec41f32f81ef (patch) | |
| tree | b5b117e1a65321d4e5669b13c319bca8dafcfa81 | |
| parent | cursor: fix discards 'const' qualifier (diff) | |
| download | wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar.gz wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar.bz2 wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar.lz wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar.xz wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.tar.zst wayland-4d13366fcc3213f197074a3f716aec41f32f81ef.zip | |
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>
| -rw-r--r-- | src/wayland-server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c index c81d98f..217613f 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -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; } |
