mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-26 04:33:16 +00:00
Catch all exceptions
This commit is contained in:
parent
d40094e6e2
commit
83c06a4729
@ -308,6 +308,8 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
|
|
||||||
// 2. Get SUPL information from server: Ephemeris record, assistance info and TOW
|
// 2. Get SUPL information from server: Ephemeris record, assistance info and TOW
|
||||||
|
try
|
||||||
|
{
|
||||||
if (front_end_cal.get_ephemeris() == true)
|
if (front_end_cal.get_ephemeris() == true)
|
||||||
{
|
{
|
||||||
std::cout << "SUPL data received OK!" << std::endl;
|
std::cout << "SUPL data received OK!" << std::endl;
|
||||||
@ -316,6 +318,11 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
std::cout << "Failure connecting to SUPL server" << std::endl;
|
std::cout << "Failure connecting to SUPL server" << std::endl;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (const boost::exception& e)
|
||||||
|
{
|
||||||
|
std::cout << "Failure connecting to SUPL server" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
// 3. Capture some front-end samples to hard disk
|
// 3. Capture some front-end samples to hard disk
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user