do not exit if not existing parameter is used. fixes #1334

This commit is contained in:
zdenop 2019-10-15 07:56:22 +02:00
parent 0150fc57cc
commit a3cfd66f37

View File

@ -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());
}
}
}