mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Fix an ungrammatical error message in config parsing.
This commit is contained in:
parent
0825428fef
commit
add0f9b77d
@ -986,7 +986,7 @@ configParse(const Storage *storage, unsigned int argListSize, const char *argLis
|
||||
|
||||
// If the option is missing an argument then error
|
||||
case ':':
|
||||
THROW_FMT(OptionInvalidError, "option '%s' requires argument", argList[optind - 1]);
|
||||
THROW_FMT(OptionInvalidError, "option '%s' requires an argument", argList[optind - 1]);
|
||||
|
||||
// Parse valid option
|
||||
default:
|
||||
|
@ -615,7 +615,7 @@ testRun(void)
|
||||
strLstAdd(argList, strNew("--pg1-host"));
|
||||
TEST_ERROR(
|
||||
configParse(storageTest, strLstSize(argList), strLstPtr(argList), false), OptionInvalidError,
|
||||
"option '--pg1-host' requires argument");
|
||||
"option '--pg1-host' requires an argument");
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
argList = strLstNew();
|
||||
|
Loading…
Reference in New Issue
Block a user