Skip to content

Commit

Permalink
Improved error message on missing optional config
Browse files Browse the repository at this point in the history
  • Loading branch information
theraysmith committed Aug 7, 2017
1 parent 4b3c5f6 commit 0a91498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions training/lang_model_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ int CombineLangModel(const UNICHARSET& unicharset, const string& script_dir,
if (!WriteUnicharset(unicharset, output_dir, lang, writer, &traineddata)) {
tprintf("Error writing unicharset!!\n");
return EXIT_FAILURE;
} else {
tprintf("Config file is optional, continuing...\n");
}
// If there is a config file, read it and add to traineddata.
string config_filename = script_dir + "/" + lang + "/" + lang + ".config";
Expand Down

0 comments on commit 0a91498

Please sign in to comment.