summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-23 11:35:40 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-23 11:35:40 +0300
commita388f4bfa6e92a06d95de576aee94f2ae5695cfe (patch)
treea9c6266888ab79be0c49715efabec769802816fa /src/apk.c
parent90aaa28a95f28206e6bf4ed0d5a798595165cb8c (diff)
downloadapk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.gz
apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.bz2
apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.tar.xz
apk-tools-a388f4bfa6e92a06d95de576aee94f2ae5695cfe.zip
index: more informative error message
when failed to load an existing index.
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 89dd53d..1783eea 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -67,6 +67,8 @@ const char *apk_error_str(int error)
return "IO ERROR";
case EBADMSG:
return "BAD archive";
+ case ENOMSG:
+ return "archive does not contain expected data";
default:
return strerror(error);
}