mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-22 22:10:19 +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 *>(&aux2), sizeof(double));
|
||||||
d_dump_file.read(reinterpret_cast<char *>(&PRN), sizeof(unsigned int));
|
d_dump_file.read(reinterpret_cast<char *>(&PRN), sizeof(unsigned int));
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::ifstream::failure &e)
|
||||||
{
|
{
|
||||||
return false;
|
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 *>(&prn_delay_chips), sizeof(double));
|
||||||
d_dump_file.read(reinterpret_cast<char *>(&tow), 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user