summaryrefslogtreecommitdiff
path: root/src/pacman/add.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/add.c')
-rw-r--r--src/pacman/add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/add.c b/src/pacman/add.c
index 526b236b..d5d83d28 100644
--- a/src/pacman/add.c
+++ b/src/pacman/add.c
@@ -65,7 +65,8 @@ int pacman_add(alpm_list_t *targets)
int retval = 0;
if(targets == NULL) {
- return(0);
+ pm_printf(PM_LOG_ERROR, _("no targets specified (use -h for help)\n"));
+ return(1);
}
/* Check for URL targets and process them