segmatch.cpp: if f_in does not exits returns -1

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
This commit is contained in:
Alessandro Comodi 2019-02-14 12:39:13 +01:00
parent 9e4c6f1bb5
commit d02a58e3df
1 changed files with 2 additions and 1 deletions

View File

@ -238,7 +238,8 @@ int main(int argc, char** argv) {
// Check if input file exists.
if (!f.good()) {
printf("WARNING: Input file does not exist!\n");
printf("ERROR: Input file does not exist!\n");
return -1;
}
assert(!f.fail());