From 0a91498195612685a0d15d296b14288b1e604e73 Mon Sep 17 00:00:00 2001 From: Ray Smith Date: Mon, 7 Aug 2017 09:50:49 -0700 Subject: [PATCH] Improved error message on missing optional config --- training/lang_model_helpers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/training/lang_model_helpers.cpp b/training/lang_model_helpers.cpp index adfe96e677..7a475f0c2e 100644 --- a/training/lang_model_helpers.cpp +++ b/training/lang_model_helpers.cpp @@ -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";