Improve error messages

This commit is contained in:
Carles Fernandez 2021-02-24 10:41:26 +01:00
parent d6fd2c244f
commit 89efa10236
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 4 additions and 8 deletions

View File

@ -20,10 +20,6 @@ SignalSource.freq=1575420000
SignalSource.switch_position=2 SignalSource.switch_position=2
SignalSource.gain_mode_rx1=slow_attack SignalSource.gain_mode_rx1=slow_attack
;######### SIGNAL_CONDITIONER CONFIG ############
SignalConditioner.implementation=Pass_Through
SignalConditioner.enable_FPGA=true
;######### CHANNELS GLOBAL CONFIG ############ ;######### CHANNELS GLOBAL CONFIG ############
Channels.in_acquisition=1 Channels.in_acquisition=1
Channels_1C.count=12 Channels_1C.count=12

View File

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