From b28f6f5e4537c64db2a7f7f8fd56dc7e1c760d99 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 22 Feb 2025 20:08:43 +0000 Subject: [PATCH] build: Fix printing erros when repos config could not be written Signed-off-by: Michael Tremer --- src/pakfire/build.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 995f8cb4..be6e6e45 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -193,8 +193,9 @@ static int __pakfire_build_setup_repo(struct pakfire* pakfire, // Write repository configuration r = pakfire_repo_write_config(repo, f); - if (r) { - ERROR(build->ctx, "Could not write repository configuration for %s: %m\n", name); + if (r < 0) { + ERROR(build->ctx, "Could not write repository configuration for %s: %s\n", + name, strerror(-r)); goto ERROR; } -- 2.39.5