Add useful error msg

This commit is contained in:
Vamber Yang
2023-05-19 17:47:40 -07:00
parent 0d96d81968
commit 9ecace676c

View File

@@ -72,6 +72,8 @@ void MemTraceReader::parse(const bool has_source) {
error(fileline, "failed parsing address..size");
}
if (infile.get() != '\n') {
printf("Error: trailing characters at the end of the line\n");
printf("this could also occur if the last line is not an empty line");
error(fileline, "trailing characters at the end of the line");
}