1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-18 23:57:33 +02:00

Add _FMT variants for all THROW macros so format types are checked by the compiler.

This commit is contained in:
David Steele
2018-05-03 11:24:29 -04:00
parent 6a40c916d4
commit c3a8fbe706
40 changed files with 246 additions and 194 deletions

View File

@ -37,7 +37,7 @@ pgVersionMap(uint32_t controlVersion, uint32_t catalogVersion)
result = PG_VERSION_83;
else
{
THROW(
THROW_FMT(
VersionNotSupportedError,
"unexpected control version = %u and catalog version = %u\n"
"HINT: is this version of PostgreSQL supported?",