From 74c5809fd0bff3953c74dde52c2c423722b3c0b8 Mon Sep 17 00:00:00 2001 From: rvanasa Date: Thu, 27 Jun 2024 13:54:04 -0600 Subject: [PATCH] Adjust error message --- src/codegen/compile.ml | 2 +- test/fail/ok/M0200.tc.ok | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen/compile.ml b/src/codegen/compile.ml index 30b42b4cd91..3eb1d64df7e 100644 --- a/src/codegen/compile.ml +++ b/src/codegen/compile.ml @@ -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 ^^ diff --git a/test/fail/ok/M0200.tc.ok b/test/fail/ok/M0200.tc.ok index c82dcd1af14..9d19d7d4ba0 100644 --- a/test/fail/ok/M0200.tc.ok +++ b/test/fail/ok/M0200.tc.ok @@ -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)