From: Michael Tremer Date: Sat, 15 Feb 2025 13:06:36 +0000 (+0000) Subject: xfer: Improve error message if the URL could not be put together X-Git-Tag: 0.9.30~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a14c84549ce40bdc3661fc6fcfdfc15e8b8b5f30;p=pakfire.git xfer: Improve error message if the URL could not be put together Signed-off-by: Michael Tremer --- 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; }