diff options
author | thibault.ferrante <thibault.ferrante@gmail.com> | 2021-01-07 17:21:36 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-01-11 11:31:30 +0200 |
commit | 39f5bfd26ab10a754a566fcd238ca2cac5916f91 (patch) | |
tree | 364d5d2a8d48ef0467e6dc667d5a5d44761fded6 /src/print.c | |
parent | d438cdfbeb13b0f38c0bef321fc767926df0e4e1 (diff) | |
download | apk-tools-39f5bfd26ab10a754a566fcd238ca2cac5916f91.tar.gz apk-tools-39f5bfd26ab10a754a566fcd238ca2cac5916f91.tar.bz2 apk-tools-39f5bfd26ab10a754a566fcd238ca2cac5916f91.tar.xz apk-tools-39f5bfd26ab10a754a566fcd238ca2cac5916f91.zip |
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.
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |