Skip to content

Commit a8ddb46

Browse files
committed
fix error messages
1 parent 052a2fb commit a8ddb46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ function main(): void {
300300
if (word === "") {
301301
showMessage(NO_WORD_MESSAGE);
302302
} else if (currentDictionary.isError()) {
303-
showMessage(WORD_ALREADY_IMPORTED_MESSAGE);
303+
showMessage(DICTIONARY_ERROR_MESSAGE_ON_IMPORT);
304304
} else if (
305305
currentDictionary.unwrap()[0].has(word)
306306
) {
307-
showMessage(DICTIONARY_ERROR_MESSAGE_ON_IMPORT);
307+
showMessage(WORD_ALREADY_IMPORTED_MESSAGE);
308308
} else {
309309
const definitions = dictionary.get(word)?.source;
310310
if (definitions != null) {

0 commit comments

Comments
 (0)