osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.61k stars 761 forks source link

improve error message for incorrect file name/path #310

Closed thinkOfaNumber closed 2 years ago

thinkOfaNumber commented 2 years ago

This PR makes the error message a bit easier to understand if the nav file path or name is wrong.

Previously you would get the error:

ERROR: Invalid start time.
tmin =    0/00/00,00:00:00 (9:0)
tmax =    0/00/00,00:00:00 (0:0)

which looks like a date/time format parsing bug. Now you get the error:

ERROR: ephemeris file not found.