Skip to content

Commit

Permalink
[server] add module skip reason to 'Unexpected BadModule' error
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 9, 2024
1 parent 4437397 commit 29e5b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class hxb_reader_api_server
else delay (fun () -> ignore(f_next chunks EOF));
m
| BadModule reason ->
die (Printf.sprintf "Unexpected BadModule %s" (s_type_path path)) __LOC__
die (Printf.sprintf "Unexpected BadModule %s (%s)" (s_type_path path) (Printer.s_module_skip_reason reason)) __LOC__
| NoModule ->
die (Printf.sprintf "Unexpected NoModule %s" (s_type_path path)) __LOC__

Expand Down

0 comments on commit 29e5b9e

Please sign in to comment.