* Remove "error: " text from ERR() call since it is appended by ERR anyway.
This commit is contained in:
parent
7f1e75edf1
commit
79d18c2617
1 changed files with 3 additions and 3 deletions
|
@ -296,7 +296,7 @@ static int parseargs(int argc, char *argv[])
|
||||||
case 2: logmask |= PM_LOG_DOWNLOAD; /*fall through */
|
case 2: logmask |= PM_LOG_DOWNLOAD; /*fall through */
|
||||||
case 1: logmask |= PM_LOG_DEBUG; break;
|
case 1: logmask |= PM_LOG_DEBUG; break;
|
||||||
default:
|
default:
|
||||||
ERR(NL, _("error: '%s' is not a valid debug level"), optarg);
|
ERR(NL, _("'%s' is not a valid debug level"), optarg);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
printf("logmask = %d\n", logmask);
|
printf("logmask = %d\n", logmask);
|
||||||
|
@ -332,7 +332,7 @@ static int parseargs(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
if(stat(optarg, &st) == -1 || !S_ISDIR(st.st_mode)) {
|
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);
|
return(1);
|
||||||
}
|
}
|
||||||
alpm_option_set_dbpath(optarg);
|
alpm_option_set_dbpath(optarg);
|
||||||
|
@ -362,7 +362,7 @@ static int parseargs(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
if(realpath(optarg, root) == NULL) {
|
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);
|
return(1);
|
||||||
}
|
}
|
||||||
alpm_option_set_root(strdup(root));
|
alpm_option_set_root(strdup(root));
|
||||||
|
|
Loading…
Add table
Reference in a new issue