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

Improve error module.

Add functions to convert error codes to C errors and handle system errors.
This commit is contained in:
David Steele
2018-01-16 13:29:27 -05:00
parent bffc6c49b3
commit 8f81620b9f
8 changed files with 150 additions and 4 deletions

View File

@ -209,7 +209,7 @@ pageChecksumBufferTest(
{
// If the buffer does not represent an even number of pages then error
if (pageBufferSize % pageSize != 0 || pageBufferSize / pageSize == 0)
THROW(AssertError, "buffer size %lu, page size %lu are not divisible", pageBufferSize, pageSize);
THROW(AssertError, "buffer size %d, page size %d are not divisible", pageBufferSize, pageSize);
// Loop through all pages in the buffer
for (int pageIdx = 0; pageIdx < pageBufferSize / pageSize; pageIdx++)