mirror of
https://github.com/corda/corda.git
synced 2025-02-20 09:26:41 +00:00
Adds a clear error message from progress tracker requirement fails. (#3116)
This commit is contained in:
parent
76b0f75ea3
commit
ecc0560ebc
@ -118,7 +118,7 @@ class ProgressTracker(vararg steps: Step) {
|
||||
if (currentStep == value) return
|
||||
|
||||
val index = steps.indexOf(value)
|
||||
require(index != -1)
|
||||
require(index != -1, { "Step ${value.label} not found in progress tracker." })
|
||||
|
||||
if (index < stepIndex) {
|
||||
// We are going backwards: unlink and unsubscribe from any child nodes that we're rolling back
|
||||
|
Loading…
x
Reference in New Issue
Block a user