1
0
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:
David Steele 2021-05-13 12:37:59 -04:00
parent 0825428fef
commit add0f9b77d
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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();