From a14c84549ce40bdc3661fc6fcfdfc15e8b8b5f30 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 15 Feb 2025 13:06:36 +0000 Subject: [PATCH] xfer: Improve error message if the URL could not be put together Signed-off-by: Michael Tremer --- src/pakfire/xfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index 7f711824..b9ae2d16 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -1598,8 +1598,8 @@ int pakfire_xfer_prepare(struct pakfire_xfer* xfer, struct pakfire_progress* pro // Compose the URL r = pakfire_xfer_prepare_url(xfer); - if (r) { - ERROR(xfer->ctx, "Could not compose URL: %m\n"); + if (r < 0) { + ERROR(xfer->ctx, "Could not compose URL: %s\n", strerror(-r)); return r; } -- 2.39.5