Skip to content

Commit

Permalink
[macro] add failing macro to 'Build failure' error
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Apr 11, 2024
1 parent 569e52e commit 47854ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typing/typeloadFields.ml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ let build_module_def ctx mt meta fvars fbuild =
let r = try ctx.g.do_macro ctx MBuild cpath meth el p with e -> ctx.c.get_build_infos <- old; raise e in
ctx.c.get_build_infos <- old;
(match r with
| MError | MMacroInMacro -> raise_typing_error "Build failure" p
| MError | MMacroInMacro -> raise_typing_error (Printf.sprintf "Build failure (%s.%s)" (s_type_path cpath) meth) p
| MSuccess e -> fbuild e)
) :: f_build
| _ ->
Expand Down

0 comments on commit 47854ed

Please sign in to comment.