mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
compiledata: Generate an error if the imported phoneme cannot be found.
This commit is contained in:
@@ -1902,8 +1902,10 @@ static void ImportPhoneme(void)
|
||||
|
||||
NextItem(tSTRING);
|
||||
|
||||
if ((ph = FindPhoneme(item_string)) == NULL)
|
||||
if ((ph = FindPhoneme(item_string)) == NULL) {
|
||||
error("Cannot find phoneme '%s' to import.", item_string);
|
||||
return;
|
||||
}
|
||||
|
||||
ph_mnem = phoneme_out->mnemonic;
|
||||
ph_code = phoneme_out->code;
|
||||
|
||||
Reference in New Issue
Block a user