diff --git a/Makefile b/Makefile index 18d456d..e788df4 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ clean: .PHONY: lint lint: go vet ./... - go run honnef.co/go/tools/cmd/staticcheck@v0.4.7 ./... + go run honnef.co/go/tools/cmd/staticcheck@v0.5.1 ./... .PHONY: test test: diff --git a/cmd/sbctl/main.go b/cmd/sbctl/main.go index 24f6f83..15a9486 100644 --- a/cmd/sbctl/main.go +++ b/cmd/sbctl/main.go @@ -171,11 +171,11 @@ func main() { } else if errors.Is(err, sbctl.ErrImmutable) { logging.Println("You need to chattr -i files in efivarfs") } else if errors.Is(err, sbctl.ErrOprom) { - logging.Error(fmt.Errorf(opromErrorMsg)) + logging.Error(errors.New(opromErrorMsg)) } else if errors.Is(err, sbctl.ErrNoEventlog) { - logging.Error(fmt.Errorf(noEventlogErrorMsg)) + logging.Error(errors.New(noEventlogErrorMsg)) } else if errors.Is(err, ErrSetupModeDisabled) { - logging.Error(fmt.Errorf(setupModeDisabled)) + logging.Error(errors.New(setupModeDisabled)) } else if !errors.Is(err, ErrSilent) { logging.Error(err) }