return nonzero exit code on state transition failure (#996)
This commit is contained in:
parent
c1aff83b8b
commit
f0d02f5f29
|
@ -15,5 +15,6 @@ cli do(pre: string, blck: string, post: string, verifyStateRoot = false):
|
||||||
|
|
||||||
if not state_transition(stateY[], blckX, flags, noRollback):
|
if not state_transition(stateY[], blckX, flags, noRollback):
|
||||||
error "State transition failed"
|
error "State transition failed"
|
||||||
|
quit 1
|
||||||
else:
|
else:
|
||||||
SSZ.saveFile(post, stateY.data)
|
SSZ.saveFile(post, stateY.data)
|
||||||
|
|
Loading…
Reference in New Issue