1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +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 else
{ {
// Log fatal. This causes execution to stop. // Consider making this a fatal error, terminating the program. Unfortunately, existing unit tests expect otherwise
LOG(FATAL) << role << "." << implementation << ": Undefined implementation for block"; LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
} }
} }
catch (const std::exception& e) catch (const std::exception& e)