Skip to content

Commit e059530

Browse files
committed
clean: Better exception message for subcategory
1 parent 1065b31 commit e059530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/codacy/plugins/api/results/Pattern.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ object Pattern {
8585
if category == Category.Security =>
8686
spec
8787

88-
case _ => throw new Exception("invalid sub category")
88+
case _ => throw new Exception(s"Invalid subcategory: $subcategory is not subcategory of $category")
8989
}
9090
case None => spec
9191
}

0 commit comments

Comments
 (0)