[m-rev.] trivial diff: update some error messages

Julien Fischer jfischer at opturion.com
Thu Feb 21 12:41:12 AEDT 2013


Update option error messages.

compiler/handle_otions.m:
    Update the error messages for the --target and --c-compiler-type
    options.

Julien.

diff --git a/compiler/handle_options.m b/compiler/handle_options.m
index 25afbe9..b2d6067 100644
--- a/compiler/handle_options.m
+++ b/compiler/handle_options.m
@@ -257,7 +257,7 @@ check_option_values(!OptionTable, Target,
GC_Method, TagsMethod,
         Target = target_c,     % dummy
         % XXX When the x86_64 backend is documented modify the line below.
         add_error("Invalid target option " ++
-            "(must be `c', `asm', `il', `java', 'csharp', or `erlang')",
+            "(must be `c', `il', `java', 'csharp', or `erlang')",
             !Errors)
     ),

@@ -483,7 +483,7 @@ check_option_values(!OptionTable, Target,
GC_Method, TagsMethod,
     ;
         C_CompilerType = cc_unknown,   % dummy
         add_error("Invalid argument to option `--c-compiler-type'\n" ++
-            "\t(must be `gcc', `lcc', `cl', or `unknown').",
+            "\t(must be `gcc', `lcc', `clang', 'msvc', or `unknown').",
             !Errors)
     ),



More information about the reviews mailing list