From 39f5bfd26ab10a754a566fcd238ca2cac5916f91 Mon Sep 17 00:00:00 2001 From: "thibault.ferrante" Date: Thu, 7 Jan 2021 17:21:36 +0100 Subject: database: Propagate errors when loading an APKINDEX In case of failure when loading an APKINDEX, no errors are propagated to the user which may uncorrectly interpret the current problem. --- src/print.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/print.c') diff --git a/src/print.c b/src/print.c index 38dad1c..78516ee 100644 --- a/src/print.c +++ b/src/print.c @@ -179,6 +179,8 @@ const char *apk_error_str(int error) return "invalid URL (check your repositories file)"; case EAPKSTALEINDEX: return "package mentioned in index not found (try 'apk update')"; + case EAPKFORMAT: + return "package file format error"; default: return strerror(error); } -- cgit v1.2.3-60-g2f50