diff --git a/tools/segmatch.cc b/tools/segmatch.cc index 917d44ac..128bca65 100644 --- a/tools/segmatch.cc +++ b/tools/segmatch.cc @@ -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());