diff --git a/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt b/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt index 2e7a5a87aafd..4a58b21adb6c 100644 --- a/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt +++ b/plugins/git4idea/src/git4idea/rebase/GitRewordOperation.kt @@ -78,7 +78,7 @@ class GitRewordOperation(private val repository: GitRepository, is UndoPossibility.HeadMoved -> notifier.notifyError(errorTitle, "Repository has already been changed") is UndoPossibility.PushedToProtectedBranch -> notifier.notifyError(errorTitle, "Commit has already been pushed to ${possibility.branch}") - is Error -> notifier.notifyError(errorTitle, "") + is UndoPossibility.Error -> notifier.notifyError(errorTitle, "") else -> doUndo() } }