Minor output fix & README improvements

This commit is contained in:
Juan Font Alonso 2021-02-28 20:29:31 +01:00
parent 2733a34033
commit fc13f74851
2 changed files with 9 additions and 3 deletions

View file

@ -63,7 +63,12 @@ var registerCmd = &cobra.Command{
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
h.RegisterMachine(args[0], args[1])
err = h.RegisterMachine(args[0], args[1])
if err != nil {
fmt.Printf("Error: %s", err)
return
}
fmt.Println("Ook.")
},
}