Warning instead of error for incorrect word-lists

This commit is contained in:
Twan van Laarhoven
2020-04-27 18:11:06 +02:00
parent a8b7699ac3
commit fd6f91e756
+5 -4
View File
@@ -1356,11 +1356,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(make_intrusive<WordListPos>(pos, end, word_list)); if (word_list) {
word_lists.push_back(make_intrusive<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);
} }