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