mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-22 18:13:42 +08:00
do not exit if not existing parameter is used. fixes #1334
This commit is contained in:
parent
0150fc57cc
commit
a3cfd66f37
@ -138,8 +138,7 @@ bool Tesseract::init_tesseract_lang_data(
|
||||
if (!ParamUtils::SetParam((*vars_vec)[i].c_str(),
|
||||
(*vars_values)[i].c_str(),
|
||||
set_params_constraint, this->params())) {
|
||||
tprintf("Error setting param %s\n", (*vars_vec)[i].c_str());
|
||||
exit(1);
|
||||
tprintf("Warning: The parameter '%s' was not found.\n", (*vars_vec)[i].c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user