Browse Source

compiledata: Generate an error if the imported phoneme cannot be found.

master
Reece H. Dunn 8 years ago
parent
commit
a9030650ba
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/libespeak-ng/compiledata.c

+ 3
- 1
src/libespeak-ng/compiledata.c View File

@@ -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;

Loading…
Cancel
Save