forked from TrueCloudLab/neoneo-go
cli: return proper error on block import fail
This commit is contained in:
parent
5703c4859b
commit
916603d495
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ func restoreDB(ctx *cli.Context) error {
|
|||
dumpSize = reader.ReadU32LE()
|
||||
}
|
||||
if reader.Err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
return cli.NewExitError(reader.Err, 1)
|
||||
}
|
||||
if start < dumpStart {
|
||||
return cli.NewExitError(fmt.Errorf("input file start from %d block, can't import %d", dumpStart, start), 1)
|
||||
|
|
Loading…
Reference in a new issue