From 71934a5a29a03f1e19423abdb483e518ddeaf92d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 16 Oct 2022 12:11:07 +0100 Subject: [PATCH] feat(aa-log): better error formating. --- cmd/aa-log/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/aa-log/main.go b/cmd/aa-log/main.go index 4338f00d..1e1d87e8 100644 --- a/cmd/aa-log/main.go +++ b/cmd/aa-log/main.go @@ -9,7 +9,6 @@ import ( "bytes" "encoding/hex" "encoding/json" - "errors" "flag" "fmt" "io" @@ -266,7 +265,7 @@ func aaLog(logger string, path string, profile string) error { case "systemd": file, err = getJournalctlLogs(path, true, path != LogFile) default: - err = errors.New("Logger not supported: " + logger) + err = fmt.Errorf("Logger %s not supported.", logger) } if err != nil { return err