• Alex Dowad's avatar
    print.c: provide more detailed error messages if retrieving a package fails · 74dc8e23
    Alex Dowad authored
    fetch_maperror() translates error codes returned by libfetch to our error
    codes. Handle those in apk_error_str(), returning error messages which
    advise the user of the most likely fix.
    A custom error code, EAPKSTALEINDEX, has been added for cases where
    retrieving a package fails due to a HTTP error 404 or similar.
    [TimoT: add also EAPKBADURL, as well as organize a bit better where the
    EAPKSTALEINDEX is generated]
print.c 4.06 KB