added a word not found allert to stderr when word is not in dictionary
This commit is contained in:
@@ -125,7 +125,8 @@ function add_word(str)
|
||||
end
|
||||
end
|
||||
if add then
|
||||
table.insert(word_list,str)
|
||||
table.insert(word_list,str)
|
||||
if not in_dictionary(str) then io.stderr:write("Error: \""..str.."\" is not known\n") end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user