Skip to content

Commit

Permalink
Adjust error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Jun 27, 2024
1 parent 8874431 commit 74c5809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codegen/compile.ml
Original file line number Diff line number Diff line change
Expand Up @@ -11255,7 +11255,7 @@ and compile_prim_invocation (env : E.t) ae p es at =
| OtherPrim "componentCall", [e] ->
if not !Flags.import_component then (
Printf.printf "%s" (Diag.string_of_message (
Diag.error_message at "M0200" "RTS" (Printf.sprintf "component import is unavailable (pass `-import-component` flag)")));
Diag.error_message at "M0200" "import" (Printf.sprintf "component import is unavailable (pass `-import-component` flag)")));
exit 1);
SR.UnboxedWord32 Type.Nat32,
compile_exp_as env ae (SR.UnboxedWord32 Type.Nat32) e ^^
Expand Down
2 changes: 1 addition & 1 deletion test/fail/ok/M0200.tc.ok
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import-component.mo:3.8-3.28: RTS error [M0200], component import is unavailable (pass `-import-component` flag)
M0200.mo:3.8-3.28: import error [M0200], component import is unavailable (pass `-import-component` flag)

0 comments on commit 74c5809

Please sign in to comment.