From 741ea00d7059d8ff7c55797ffc525a461d7f3ced Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 20 Sep 2018 08:37:06 +0200 Subject: [PATCH] Don't call exit when parameter in file is unknown Wrong or old parameters in traineddata files should not terminate the program, so make that a warning instead of a fatal error. This fixes issue #1520. Signed-off-by: Stefan Weil --- src/ccutil/params.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ccutil/params.cpp b/src/ccutil/params.cpp index 8678ef888c..99e559aa5d 100644 --- a/src/ccutil/params.cpp +++ b/src/ccutil/params.cpp @@ -79,8 +79,7 @@ bool ParamUtils::ReadParamsFromFp(SetParamConstraint constraint, TFile *fp, if (!foundit) { anyerr = true; // had an error - tprintf("read_params_file: parameter not found: %s\n", line); - exit(1); + tprintf("Warning: Parameter not found: %s\n", line); } } }