We use ESRCH for unknown names except in GET_CONN_INFO. That's misleading
and makes error forwarding error prone. Fix that and use ESRCH instead of
ENOENT.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
e = kdbus_name_lookup(conn->bus->name_registry, name);
if (!e) {
- ret = -ENOENT;
+ ret = -ESRCH;
goto exit;
}
* size.
* @ENOBUFS: There is no space left for the submitted data to fit
* into the receiver's pool.
- * @ENOENT: The name to query information about is currently not on
- * the bus.
+ * @ENOENT: The to be canceled message was not found.
* @ENOMEM: Out of memory.
* @ENOMSG: The queue is not empty, but no message with a matching
* priority is currently queued.