disp rule filepath (#179)

This commit is contained in:
James authored and GitHub committed 2021-11-10 20:00:52 +09:00
1 parent b278f12cec
commit 9b24bc661b
1 file changed
+2 -4
+2 -4
View File
@@ -67,10 +67,8 @@ impl Detection {
err_msgs_result.err().iter().for_each(|err_msgs| {
let stdout = std::io::stdout();
let mut stdout = stdout.lock();
let errmsg_body = format!(
"Failed to parse Rule file. (Error Rule Title : {})",
rule.yaml["title"].as_str().unwrap_or("")
);
let errmsg_body =
format!("Failed to parse Rule file. (FilePath : {})", rule.rulepath);
AlertMessage::alert(&mut stdout, errmsg_body).ok();
err_msgs.iter().for_each(|err_msg| {