1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-26 04:57:40 +00:00

Improve error messages

This commit is contained in:
Carles Fernandez
2021-02-24 10:41:26 +01:00
parent d6fd2c244f
commit 89efa10236
2 changed files with 4 additions and 8 deletions

View File

@@ -1265,7 +1265,7 @@ std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
else
{
// Consider making this a fatal error, terminating the program. Unfortunately, existing unit tests expect otherwise
LOG(ERROR) << role << "." << implementation << ": Undefined implementation for block";
LOG(ERROR) << role << ".implementation=" << implementation << " is an undefined implementation.";
}
}
catch (const std::exception& e)
@@ -1464,7 +1464,7 @@ std::unique_ptr<AcquisitionInterface> GNSSBlockFactory::GetAcqBlock(
else
{
LOG(ERROR) << role << " block: Undefined implementation " << implementation;
LOG(ERROR) << role << " block: Undefined implementation" << (implementation == "Wrong"s ? "" : " "s + implementation);
}
return block;
}
@@ -1618,7 +1618,7 @@ std::unique_ptr<TrackingInterface> GNSSBlockFactory::GetTrkBlock(
#endif
else
{
LOG(ERROR) << role << " block: Undefined implementation " << implementation;
LOG(ERROR) << role << " block: Undefined implementation" << (implementation == "Wrong"s ? "" : " "s + implementation);
}
return block;
}
@@ -1709,7 +1709,7 @@ std::unique_ptr<TelemetryDecoderInterface> GNSSBlockFactory::GetTlmBlock(
else
{
LOG(ERROR) << role << " block: Undefined implementation " << implementation;
LOG(ERROR) << role << " block: Undefined implementation" << (implementation == "Wrong"s ? "" : " "s + implementation);
}
return block;