[m-rev.] trivial diff: Make an exception a little more friendly

Paul Bone paul at bone.id.au
Wed Sep 7 15:31:26 AEST 2016


Make an exception a little more friendly

This exception is now more specific about what is not implemented.

compiler/add_foreign_enum.m:
    As above.
---
 compiler/add_foreign_enum.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/add_foreign_enum.m b/compiler/add_foreign_enum.m
index 0d5e7e3..27b809b 100644
--- a/compiler/add_foreign_enum.m
+++ b/compiler/add_foreign_enum.m
@@ -353,7 +353,7 @@ add_ctor_to_name_map(Lang, Prefix, MakeUpperCase, _TypeModQual, Ctor,
         IsValidForeignName = pred_to_bool(is_valid_c_identifier(ForeignName))
     ;
         Lang = lang_erlang,
-        sorry($module, $pred, "foreign_export_enum for target language")
+        sorry($module, $pred, "foreign_export_enum for Erlang")
     ),
     (
         IsValidForeignName = yes,
-- 
2.7.4



More information about the reviews mailing list