1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +00:00

change invalid block implementation from FATAL to ERROR

I'm not sure that there is any value in continuing with a bad configuration
but be careful about changing the semantics of existing code. You never know
what else may depend upon it.
This commit is contained in:
Jim Melton 2021-02-15 16:31:35 -07:00
parent 6e04a42c8a
commit bba9edd68c
No known key found for this signature in database
GPG Key ID: C46392D9AACAB216

View File

@ -1265,8 +1265,8 @@ std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
else
{
// Log fatal. This causes execution to stop.
LOG(FATAL) << role << "." << implementation << ": Undefined implementation for block";
// Consider making this a fatal error, terminating the program. Unfortunately, existing unit tests expect otherwise
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
}
}
catch (const std::exception& e)