1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-03 13:21:32 +02:00

Fix error handling in build-code binary.

120a49b6 improved the error handling but due to a copy/pasto errors were being handled as asserts, which tripped an assertion in the log module.
This commit is contained in:
David Steele 2023-03-10 16:11:30 +07:00
parent 19f3a1d304
commit 2fffd64213

View File

@ -96,7 +96,8 @@ main(const int argListSize, const char *const argList[])
CATCH_FATAL()
{
LOG_FMT(
errorTypeCode(&AssertError) ? logLevelAssert : logLevelError, errorCode(), "%s\n%s", errorMessage(), errorStackTrace());
errorCode() == errorTypeCode(&AssertError) ? logLevelAssert : logLevelError, errorCode(), "%s\n%s", errorMessage(),
errorStackTrace());
result = errorCode();
}