forked from TrueCloudLab/neoneo-go
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