Skip to content

Commit 75ffcdb

Browse files
Zeta611cristianoc
authored andcommitted
Fix raise detection and minor typos
1 parent b22930f commit 75ffcdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Exception.ml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,11 @@ let traverseAst () =
251251
in
252252
let isRaise s =
253253
s = "Pervasives.raise"
254-
|| s = "Pervasives.raise_notracee"
254+
|| s = "Pervasives.raise_notrace"
255255
|| s = "Stdlib.raise"
256-
|| s = "Stdlib.raise_notracee"
256+
|| s = "Stdlib.raise_notrace"
257+
|| s = "Stdlib.Pervasives.raise"
258+
|| s = "Stdlib.Pervasives.raise_notrace"
257259
in
258260
let raiseArgs args =
259261
match args with
@@ -285,7 +287,7 @@ let traverseAst () =
285287
if calleeName |> isRaise then
286288
Log_.warning ~loc ~name:"Exception Analysis" (fun ppf () ->
287289
Format.fprintf ppf
288-
"@{<info>%s@} can be analyzed only if called direclty" calleeName);
290+
"@{<info>%s@} can be analyzed only if called directly" calleeName);
289291
currentEvents :=
290292
{
291293
Event.exceptions = Exceptions.empty;

0 commit comments

Comments
 (0)