mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
Merge pull request #3527 from nspcc-dev/dump-fixes
Dump help/error fixes
This commit is contained in:
commit
8d4e8b6047
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ func NewCommands() []*cli.Command {
|
||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: "dump",
|
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]",
|
UsageText: "neo-go db dump [-o file] [-s start] [-c count] [--config-path path] [-p/-m/-t] [--config-file file]",
|
||||||
Action: dumpDB,
|
Action: dumpDB,
|
||||||
Flags: cfgCountOutFlags,
|
Flags: cfgCountOutFlags,
|
||||||
|
@ -325,7 +325,7 @@ func restoreDB(ctx *cli.Context) error {
|
||||||
|
|
||||||
err = chaindump.Restore(chain, reader, skip, count, f)
|
err = chaindump.Restore(chain, reader, skip, count, f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cli.Exit(err, 1)
|
return cli.Exit(fmt.Errorf("wrong dump file or settings mismatch: %w", err), 1)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue