Skip to content

Commit

Permalink
Throw error instead of warning on state conflict
Browse files Browse the repository at this point in the history
It may indicate some serious issues, and we would like to know if anything goes wrong
  • Loading branch information
lippfi committed Feb 18, 2024
1 parent 88f38c9 commit 0d7cfc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public sealed interface KeyProcessResult {
synchronized(KeyHandler.lock) {
val keyHandler = KeyHandler.getInstance()
if (keyHandler.keyHandlerState != originalState) {
logger.warn("Unexpected editor state. Aborting command execution.")
logger.error("Unexpected editor state. Aborting command execution.")
}
processing(preProcessState, editor, context)
keyHandler.updateState(preProcessState)
Expand Down

0 comments on commit 0d7cfc3

Please sign in to comment.