Skip to content

Commit

Permalink
fix exception for cancelled pipeline status
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrMasliaev committed Feb 6, 2025
1 parent 7a753c0 commit 32400c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/marge_kot/helpers/PipelineWaiter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PipelineWaiter(
when (pipeline.status) {
Pipeline.Status.SUCCESS -> return@coroutineScope
Pipeline.Status.FAILED -> throw CannotMergeException("Pipeline failed")
Pipeline.Status.CANCELED -> throw NeedRebaseException()
Pipeline.Status.CANCELED -> throw CannotMergeException("Pipeline was canceled")
Pipeline.Status.SKIPPED -> throw NeedRebaseException()
else -> continue
}
Expand Down

0 comments on commit 32400c3

Please sign in to comment.