1
0
forked from fsfw/fsfw

diag output for inits improved

This commit is contained in:
2020-07-05 01:25:49 +02:00
parent 9dcf0c7118
commit fcf3f04377
2 changed files with 10 additions and 4 deletions

View File

@ -35,8 +35,10 @@ ReturnValue_t FailureIsolationBase::initialize() {
return result;
}
owner = objectManager->get<HasHealthIF>(ownerId);
if (owner == NULL) {
return RETURN_FAILED;
if (owner == nullptr) {
sif::error << "FailureIsolationBase::intialize: Owner object "
"invalid. Make sure it implements HasHealthIF" << std::endl;
return ObjectManagerIF::CHILD_INIT_FAILED;
}
}
if (faultTreeParent != 0) {