mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
compare-states: return 1 when the state is different
And don't pring usage.
This commit is contained in:
parent
84c231757b
commit
74877383c3
1 changed files with 1 additions and 2 deletions
|
@ -133,7 +133,7 @@ func cliMain(c *cli.Context) error {
|
|||
})
|
||||
fmt.Println(diff)
|
||||
}
|
||||
return nil
|
||||
return errors.New("different state found")
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
@ -145,7 +145,6 @@ func main() {
|
|||
|
||||
if err := ctl.Run(os.Args); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
fmt.Fprintln(os.Stderr, ctl.Usage)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue