Skip to content

Commit b1bf251

Browse files
committed
add modifiers to log
Signed-off-by: Joanne Wang <[email protected]>
1 parent db4a584 commit b1bf251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/opensearch/securityanalytics/rules/objects/SigmaDetectionItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static <T> SigmaDetectionItem fromMapping(String key, Either<T, List<T>>
116116
// throws an error if sigmaType is an empty string and the modifier is "contains" or "startswith" or "endswith"
117117
boolean invalidModifierWithEmptyString = modifierIds.contains("contains") || modifierIds.contains("startswith") || modifierIds.contains("endswith");
118118
if (sigmaType.getClass().equals(SigmaString.class) && v.toString().isEmpty() && invalidModifierWithEmptyString) {
119-
throw new SigmaValueError("Cannot create rule with empty string and given modifier(s)");
119+
throw new SigmaValueError("Cannot create rule with empty string and given modifier(s): " + modifierIds);
120120
} else {
121121
sigmaTypes.add(sigmaType);
122122
}

0 commit comments

Comments
 (0)