mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(aa-log): better error formating.
This commit is contained in:
parent
355e92d478
commit
71934a5a29
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
@ -266,7 +265,7 @@ func aaLog(logger string, path string, profile string) error {
|
||||||
case "systemd":
|
case "systemd":
|
||||||
file, err = getJournalctlLogs(path, true, path != LogFile)
|
file, err = getJournalctlLogs(path, true, path != LogFile)
|
||||||
default:
|
default:
|
||||||
err = errors.New("Logger not supported: " + logger)
|
err = fmt.Errorf("Logger %s not supported.", logger)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue