Skip to content

Commit

Permalink
fix: 単語の更新および登録時の例外をスローするように修正 (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Jan 3, 2025
1 parent 438d8dc commit 8a6d2a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Dialog/DictionaryEditWordDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ const saveWord = async () => {
accentType: accent,
priority: wordPriority.value,
});
} catch {
} catch (e) {
void store.actions.SHOW_ALERT_DIALOG({
title: "単語の更新に失敗しました",
message: "エンジンの再起動をお試しください。",
});
return;
throw e;
}
} else {
try {
Expand All @@ -313,12 +313,12 @@ const saveWord = async () => {
priority: wordPriority.value,
}),
);
} catch {
} catch (e) {
void store.actions.SHOW_ALERT_DIALOG({
title: "単語の登録に失敗しました",
message: "エンジンの再起動をお試しください。",
});
return;
throw e;
}
}
await loadingDictProcess();
Expand Down

0 comments on commit 8a6d2a4

Please sign in to comment.