1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-02-23 06:20:08 +00:00

Fix exception catching

This commit is contained in:
Carles Fernandez 2017-10-24 11:38:37 +02:00
parent 8509b7254a
commit ac99ba5b75
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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;
} }