summaryrefslogtreecommitdiff
path: root/src/pacman/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r--src/pacman/remove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 9b4adce0..9750fe47 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -51,7 +51,8 @@ int pacman_remove(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);
}
/* If the target is a group, ask if its packages should be removed