mirror of
https://github.com/corda/corda.git
synced 2024-12-22 22:32:26 +00:00
Show error msg rather than fail silently when running a flow with no progress tracker from the shell.
This commit is contained in:
parent
03ddaaac11
commit
ebbca94d67
@ -293,6 +293,10 @@ object InteractiveShell {
|
||||
continue
|
||||
}
|
||||
val flow = ctor.newInstance(*args) as FlowLogic<*>
|
||||
if (flow.progressTracker == null) {
|
||||
errors.add("You must override the flow's progress tracker to run it from the shell")
|
||||
continue
|
||||
}
|
||||
return invoke(flow)
|
||||
} catch(e: StringToMethodCallParser.UnparseableCallException.MissingParameter) {
|
||||
errors.add("${getPrototype()}: missing parameter ${e.paramName}")
|
||||
|
Loading…
Reference in New Issue
Block a user