conf: improve log message for failed additions in sources reload

Describe the error status in the log message when adding a source from
sourcedir failed.
This commit is contained in:
Miroslav Lichvar
2023-09-11 16:14:53 +02:00
parent 37deee7140
commit aa8196328c
5 changed files with 37 additions and 1 deletions

View File

@@ -88,6 +88,8 @@ update_random_address(NTP_Remote_Address *addr, int rand_bits)
TEST_CHECK(status == NSR_Success || status == NSR_AlreadyInUse);
}
TEST_CHECK(strlen(NSR_StatusToString(status)) > 0);
return status == NSR_Success;
}