You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-03 00:26:59 +02:00
Add _FMT variants for all THROW macros so format types are checked by the compiler.
This commit is contained in:
@ -136,7 +136,7 @@ testRun()
|
||||
THROW_SYS_ERROR(AssertError, "unable to find child process"); // {uncoverable+}
|
||||
|
||||
if (WEXITSTATUS(processStatus) != 0)
|
||||
THROW(AssertError, "perl exited with error %d", WEXITSTATUS(processStatus));
|
||||
THROW_FMT(AssertError, "perl exited with error %d", WEXITSTATUS(processStatus));
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
@ -162,7 +162,7 @@ testRun()
|
||||
THROW_SYS_ERROR(AssertError, "unable to find child process"); // {uncoverable+}
|
||||
|
||||
if (WEXITSTATUS(processStatus) != 0)
|
||||
THROW(AssertError, "perl exited with error %d", WEXITSTATUS(processStatus));
|
||||
THROW_FMT(AssertError, "perl exited with error %d", WEXITSTATUS(processStatus));
|
||||
}
|
||||
|
||||
// Make sure the process times out when there is nothing to get
|
||||
|
Reference in New Issue
Block a user