From cbf3ef5a6d9f6cd10076adb77b7011583618bb8c Mon Sep 17 00:00:00 2001 From: xfhg <3227935+xfhg@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:43:03 +0800 Subject: [PATCH] v1.0.X --- cmd/audit.go | 2 +- cmd/target.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/audit.go b/cmd/audit.go index 1df0c352..7c828a3b 100644 --- a/cmd/audit.go +++ b/cmd/audit.go @@ -132,7 +132,7 @@ func runAuditPerf(cmd *cobra.Command, args []string) { allFileInfos, err := CalculateFileHashes(targetDir) if err != nil { - log.Debug().Err(err).Msg("Error calculating file hashes") + log.Err(err).Msg("Error verifying target") } else { processPoliciesInParallel(policies_filtered, allFileInfos, rgPath) } diff --git a/cmd/target.go b/cmd/target.go index 2d98b4ea..e785143d 100644 --- a/cmd/target.go +++ b/cmd/target.go @@ -49,7 +49,7 @@ func CalculateFileHashes(targetDir string) ([]FileInfo, error) { } if len(fileInfos) == 0 { - return nil, fmt.Errorf("no target files found at : %s", targetDir) + return nil, fmt.Errorf("no target files found at : %s", targetDir) } return fileInfos, nil