Skip to content

Commit

Permalink
v1.0.X
Browse files Browse the repository at this point in the history
  • Loading branch information
xfhg committed Sep 19, 2024
1 parent 4f9ed86 commit cbf3ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbf3ef5

Please sign in to comment.