mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
improve debug and error handling
This commit is contained in:
parent
6c7d2d0e1e
commit
d27674722a
6 changed files with 25 additions and 19 deletions
|
|
@ -242,8 +242,8 @@ static void *create_object(void *_data,
|
|||
pw_resource_error(resource, new_id, -EINVAL, "unknown input port");
|
||||
goto done;
|
||||
no_mem:
|
||||
pw_log_error("can't create link");
|
||||
pw_resource_error(resource, new_id, -ENOMEM, "no memory");
|
||||
pw_log_error("can't create link: %s", error);
|
||||
pw_resource_error(resource, new_id, -ENOMEM, error);
|
||||
goto done;
|
||||
no_bind:
|
||||
pw_resource_error(resource, new_id, res, "can't bind link");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue