Skip to content

Commit

Permalink
cli: extend error message for restore failure, fix #3499
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Jul 26, 2024
1 parent c4453a2 commit e5dd2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e5dd2b2

Please sign in to comment.