You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-08 03:22:25 +03:00
Add _FMT variants for all THROW macros so format types are checked by the compiler.
This commit is contained in:
@@ -294,7 +294,7 @@ helpRender()
|
||||
if (cfgDefOptionId(optionName) != -1)
|
||||
optionId = cfgOptionIdFromDefId(cfgDefOptionId(optionName), 0);
|
||||
else
|
||||
THROW(OptionInvalidError, "option '%s' is not valid for command '%s'", optionName, commandName);
|
||||
THROW_FMT(OptionInvalidError, "option '%s' is not valid for command '%s'", optionName, commandName);
|
||||
}
|
||||
|
||||
// Output option summary and description
|
||||
|
||||
Reference in New Issue
Block a user