mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Merge pull request #1920 from stweil/errhandling
Don't call exit when parameter in file is unknown
This commit is contained in:
commit
cefb62b644
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user