From 79d18c2617b6562bf7c3cce162ebf5b92bee9aca Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 9 Feb 2007 17:58:19 +0000 Subject: * Remove "error: " text from ERR() call since it is appended by ERR anyway. --- src/pacman/pacman.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 99248346..bd48a895 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -296,7 +296,7 @@ static int parseargs(int argc, char *argv[]) case 2: logmask |= PM_LOG_DOWNLOAD; /*fall through */ case 1: logmask |= PM_LOG_DEBUG; break; default: - ERR(NL, _("error: '%s' is not a valid debug level"), optarg); + ERR(NL, _("'%s' is not a valid debug level"), optarg); return(1); } printf("logmask = %d\n", logmask); @@ -332,7 +332,7 @@ static int parseargs(int argc, char *argv[]) break; case 'b': if(stat(optarg, &st) == -1 || !S_ISDIR(st.st_mode)) { - ERR(NL, _("error: '%s' is not a valid db path\n"), optarg); + ERR(NL, _("'%s' is not a valid db path\n"), optarg); return(1); } alpm_option_set_dbpath(optarg); @@ -362,7 +362,7 @@ static int parseargs(int argc, char *argv[]) break; case 'r': if(realpath(optarg, root) == NULL) { - ERR(NL, _("error: '%s' is not a valid root path\n"), optarg); + ERR(NL, _("'%s' is not a valid root path\n"), optarg); return(1); } alpm_option_set_root(strdup(root)); -- cgit v1.2.3