From 8b98d111e12fb79218916c48c0a3fe27a0d07699 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 2 Jun 2021 20:12:16 +1000 Subject: [PATCH] context: print the correct strerror if the config load failed "can't load config client.conf: Success" is a bit confusing otherwise. --- src/pipewire/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 38601810c..bfac31e21 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -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;