mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Update FindIncorrectlyUsedExceptions.ql
This commit is contained in:
@@ -40,5 +40,5 @@ where
|
||||
) and
|
||||
fc instanceof ExprInVoidContext and
|
||||
not fc.isInMacroExpansion() and
|
||||
msg = "This object does not generate an exception."
|
||||
msg = "Object creation of exception type on stack. Did you forget the throw keyword?"
|
||||
select fc, msg
|
||||
|
||||
Reference in New Issue
Block a user