Skip to content

Commit

Permalink
Don't call exit when parameter in file is unknown
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
stweil committed Sep 20, 2018
1 parent a2612f2 commit 741ea00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ccutil/params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 741ea00

Please sign in to comment.