mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-22 14:00:13 +00:00
Fix exception catching
This commit is contained in:
parent
8509b7254a
commit
ac99ba5b75
@ -54,7 +54,7 @@ bool tracking_dump_reader::read_binary_obs()
|
||||
d_dump_file.read(reinterpret_cast<char *>(&aux2), sizeof(double));
|
||||
d_dump_file.read(reinterpret_cast<char *>(&PRN), sizeof(unsigned int));
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ bool tracking_true_obs_reader::read_binary_obs()
|
||||
d_dump_file.read(reinterpret_cast<char *>(&prn_delay_chips), sizeof(double));
|
||||
d_dump_file.read(reinterpret_cast<char *>(&tow), sizeof(double));
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
catch (const std::ifstream::failure &e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user