From d02a58e3dfe45aad4160322efebecf9a814bec6b Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Thu, 14 Feb 2019 12:39:13 +0100 Subject: [PATCH] segmatch.cpp: if f_in does not exits returns -1 Signed-off-by: Alessandro Comodi --- tools/segmatch.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());