]> git.ipfire.org Git - pakfire.git/commitdiff
xfer: Improve error message if the URL could not be put together
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 13:06:36 +0000 (13:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 13:06:36 +0000 (13:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/xfer.c

index 7f711824fd999e49f5196a366de1e5e1d0981183..b9ae2d1611cb35a32ece78dbe46092a76b875ad0 100644 (file)
@@ -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;
        }