Skip to content

Commit

Permalink
chore: add warning message on high rule fail count
Browse files Browse the repository at this point in the history
  • Loading branch information
FranticTyping committed Jul 7, 2022
1 parent 272b793 commit aa098ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ fn run() -> Result<()> {
}
}
}
if failed > 500 && sigma.is_empty() {
cs_eyellowln!("[!] {} rules failed to load, ensure Sigma rule paths are specified with the '-s' flag", failed);
}
if count == 0 {
return Err(anyhow::anyhow!(
"No valid detection rules were found in the provided paths",
Expand Down

0 comments on commit aa098ce

Please sign in to comment.