mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 04:00:34 +00:00
Be more explicit in the terminal if an instantiation fails
This commit is contained in:
parent
9384c8c303
commit
dcf9c8c774
@ -1273,8 +1273,10 @@ std::unique_ptr<GNSSBlockInterface> GNSSBlockFactory::GetBlock(
|
|||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
{
|
{
|
||||||
std::cout << "Configuration error. GNSS-SDR program ended.\n";
|
LOG(INFO) << "Exception raised while instantiating the block: " << e.what();
|
||||||
LOG(INFO) << "Exception raised while instantiating a block: " << e.what();
|
std::cout << "Configuration error in " << role << " block, implementation " << (implementation == "Wrong"s ? "not defined."s : implementation) << ". The error was:\n"
|
||||||
|
<< e.what() << '\n';
|
||||||
|
std::cout << "GNSS-SDR program ended.\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
return block;
|
return block;
|
||||||
|
Loading…
Reference in New Issue
Block a user