mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
cli: extend error message for restore failure, fix #3499
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
c4453a2a3f
commit
e5dd2b2ad6
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ func restoreDB(ctx *cli.Context) error {
|
|||
|
||||
err = chaindump.Restore(chain, reader, skip, count, f)
|
||||
if err != nil {
|
||||
return cli.Exit(err, 1)
|
||||
return cli.Exit(fmt.Errorf("wrong dump file or settings mismatch: %w", err), 1)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue