diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2008-02-03 01:12:33 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-03 01:55:24 +0100 |
commit | 96ee1bca2473ea32d647db0464653424e34b1e91 (patch) | |
tree | 2ce664c5aeb149218fce40a0c752e233a09e976a /src/pacman/remove.c | |
parent | 37bb99abfa5672e101e34579882e22c7a1016a9b (diff) | |
download | pacman-96ee1bca2473ea32d647db0464653424e34b1e91.tar.gz pacman-96ee1bca2473ea32d647db0464653424e34b1e91.tar.xz |
Clarify the "failed to add target" errors.
Make the error message printed when addtarget fails consistent between
add.c, remove.c and sync.c.
The main problem was that the "failed to add target" in case of a removal
operation could sound confusing. There was also a little output problem
with -U ("failed" was missing).
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r-- | src/pacman/remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 56837fa2..0722057f 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -108,8 +108,8 @@ int pacman_remove(alpm_list_t *targets) char *targ = alpm_list_getdata(i); if(alpm_trans_addtarget(targ) == -1) { printf("failed.\n"); - fprintf(stderr, _("error: failed to add target '%s' (%s)\n"), targ, - alpm_strerrorlast()); + fprintf(stderr, _("error: '%s': %s\n"), + targ, alpm_strerrorlast()); remove_cleanup(); FREELIST(finaltargs); return(1); |