mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
context: print the correct strerror if the config load failed
"can't load config client.conf: Success" is a bit confusing otherwise.
This commit is contained in:
parent
4d45182801
commit
8b98d111e1
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
|||
conf_name = pw_properties_get(properties, PW_KEY_CONFIG_NAME);
|
||||
if (try_load_conf(this, conf_prefix, conf_name, conf) < 0) {
|
||||
conf_name = "client.conf";
|
||||
if (try_load_conf(this, conf_prefix, conf_name, conf) < 0) {
|
||||
if ((res = try_load_conf(this, conf_prefix, conf_name, conf)) < 0) {
|
||||
pw_log_error(NAME" %p: can't load config %s: %s",
|
||||
this, conf_name, spa_strerror(res));
|
||||
goto error_free;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue