mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
return ENOENT for unknown resources
Fix some other errors as well, ENOSYS for invalid interface, ENOTSUP for unimplemented methods.
This commit is contained in:
parent
12d831fc39
commit
387009e0d6
4 changed files with 6 additions and 6 deletions
|
|
@ -747,7 +747,7 @@ static int core_demarshal_destroy(void *object, const struct pw_protocol_native_
|
|||
|
||||
no_resource:
|
||||
pw_log_error("client %p: unknown resource %u op:%u", client, id, msg->opcode);
|
||||
pw_resource_errorf(resource, -EINVAL, "unknown resource %d op:%u", id, msg->opcode);
|
||||
pw_resource_errorf(resource, -ENOENT, "unknown resource %d op:%u", id, msg->opcode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue