Commit 7d58ecbb authored by twanvl's avatar twanvl

warning instead of error for incorrect word-lists

parent 146fde14
...@@ -1366,11 +1366,12 @@ void TextValueEditor::findWordLists() { ...@@ -1366,11 +1366,12 @@ void TextValueEditor::findWordLists() {
break; break;
} }
} }
if (!word_list) {
throw Error(_ERROR_1_("word list type not found", name));
}
// add to word_lists // add to word_lists
word_lists.push_back(intrusive(new WordListPos(pos, end, word_list))); if (word_list) {
word_lists.push_back(intrusive(new WordListPos(pos, end, word_list)));
} else {
queue_message(MESSAGE_WARNING, _ERROR_1_("word list type not found", name));
}
// next // next
pos = str.find(_("<word-list-"), end); pos = str.find(_("<word-list-"), end);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment