Skip to content

Commit 741ea00

Browse files
committed
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 <[email protected]>
1 parent a2612f2 commit 741ea00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ccutil/params.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ bool ParamUtils::ReadParamsFromFp(SetParamConstraint constraint, TFile *fp,
7979

8080
if (!foundit) {
8181
anyerr = true; // had an error
82-
tprintf("read_params_file: parameter not found: %s\n", line);
83-
exit(1);
82+
tprintf("Warning: Parameter not found: %s\n", line);
8483
}
8584
}
8685
}

0 commit comments

Comments
 (0)