From: Michael Tremer Date: Fri, 18 Oct 2024 12:52:20 +0000 (+0000) Subject: pakfire: Show more information if setup fails X-Git-Tag: 0.9.30~1017 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67fc306aab6790ca100cd27990b39b37a249842f;p=pakfire.git pakfire: Show more information if setup fails Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index c3e36f0ba..664cce0a4 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -811,8 +811,10 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, struct pakfire_ctx* // Setup user/group r = pakfire_setup_user(p); - if (r < 0) + if (r < 0) { + CTX_ERROR(p->ctx, "Could not parse user information: %s\n", strerror(-r)); goto ERROR; + } // Store if we have a path if (path) @@ -834,8 +836,10 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, struct pakfire_ctx* // Import distro configuration r = pakfire_config_import_distro(p); - if (r < 0) + if (r < 0) { + CTX_ERROR(p->ctx, "Could not parse distribution from configuration: %s\n", strerror(-r)); goto ERROR; + } // Read /etc/os-release if (p->internal_flags & PAKFIRE_HAS_PATH) {