Skip to content

Commit 5bc514f

Browse files
committed
give proper error when constructor lookup in exception patcher fails
see #12208
1 parent b4b99d6 commit 5bc514f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/filters/exception/saveStacks.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ let patch_constructors ectx =
111111
}
112112
| _ -> die "" __LOC__
113113
)
114-
| None -> die "" __LOC__
114+
| None ->
115+
raise_typing_error "Could not patch constructor on this function because there isn't one" cls.cl_name_pos
115116
| _ -> ()
116117
)
117118
| _ -> ()

0 commit comments

Comments
 (0)