Skip to content

Commit 62ae702

Browse files
authored
Update FindIncorrectlyUsedExceptions.ql
1 parent 6d27585 commit 62ae702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-703/FindIncorrectlyUsedExceptions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ where
4040
) and
4141
fc instanceof ExprInVoidContext and
4242
not fc.isInMacroExpansion() and
43-
msg = "This object does not generate an exception."
43+
msg = "Object creation of exception type on stack. Did you forget the throw keyword?"
4444
select fc, msg

0 commit comments

Comments
 (0)