Exit with error properly and fix lint check

This commit is contained in:
Gregory Kurtzer
2021-09-08 11:38:39 -07:00
parent fdf6fc88fa
commit ee5b099e02

View File

@@ -1,12 +1,16 @@
package main package main
import ( import (
"os"
"github.com/hpcng/warewulf/internal/app/wwctl" "github.com/hpcng/warewulf/internal/app/wwctl"
) )
func main() { func main() {
root := wwctl.GetRootCommand() root := wwctl.GetRootCommand()
//nolint:errcheck err := root.Execute()
root.Execute() if err != nil {
os.Exit(255)
}
} }