Update FindIncorrectlyUsedExceptions.ql

This commit is contained in:
ihsinme
2021-11-23 09:55:43 +03:00
committed by GitHub
parent 6d27585b92
commit 62ae702e07

View File

@@ -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