summaryrefslogtreecommitdiff
path: root/src/add.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/add.c')
-rw-r--r--src/add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/add.c b/src/add.c
index 710f606..4cc81b2 100644
--- a/src/add.c
+++ b/src/add.c
@@ -131,7 +131,8 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv)
for (i = 0; (pkgs != NULL) && i < pkgs->num; i++) {
r = apk_state_lock_dependency(state, &pkgs->item[i]);
if (r != 0) {
- apk_error("Unable to install '%s'", pkgs->item[i].name->name);
+ apk_error("Unable to install '%s': %d",
+ pkgs->item[i].name->name, r);
if (!(apk_flags & APK_FORCE))
goto err;
}