Skip to content

Commit

Permalink
Merge pull request #3527 from nspcc-dev/dump-fixes
Browse files Browse the repository at this point in the history
Dump help/error fixes
  • Loading branch information
roman-khimov authored Jul 29, 2024
2 parents 07da75c + e5dd2b2 commit 8d4e8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func NewCommands() []*cli.Command {
Subcommands: []*cli.Command{
{
Name: "dump",
Usage: "Dump blocks (starting with block #1) to the file",
Usage: "Dump blocks (starting with the genesis or specified block) to the file",
UsageText: "neo-go db dump [-o file] [-s start] [-c count] [--config-path path] [-p/-m/-t] [--config-file file]",
Action: dumpDB,
Flags: cfgCountOutFlags,
Expand Down 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 8d4e8b6

Please sign in to comment.