Open rohanpsingh opened 1 year ago
That's not super necessary, the FlatLog class checks that the log file is a valid mc_rtc log by checking for a magic number at the start of the file. What was the motivation for this?
In that case we could probably put the check early on. Currently, even if the input file is invalid, the program will generate an empty output file and then fail after. I agree it's not super important.
I see, I think the nicer approach is to:
mc_bin_to_flat
so that the util can return a different exit code if the conversion fails
Throw error if
argv[1]
does not have a.bin
extension