diff src/jscomp.sml @ 1177:26fed2c4f5be

Louder jscomp; toUpper/Lower fix for JavaScript
author Adam Chlipala <adamc@hcoop.net>
date Thu, 04 Mar 2010 13:47:16 -0500
parents 51e596feec37
children 78b36c50daf9
line wrap: on
line diff
--- a/src/jscomp.sml	Tue Mar 02 16:00:48 2010 -0500
+++ b/src/jscomp.sml	Thu Mar 04 13:47:16 2010 -0500
@@ -1,4 +1,4 @@
-(* Copyright (c) 2008, Adam Chlipala
+(* Copyright (c) 2008-2010, Adam Chlipala
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1173,7 +1173,9 @@
                | EJavaScript (m, e') =>
                  (foundJavaScript := true;
                   jsExp m outer (e', st)
-                  handle CantEmbed t => ((*Print.preface ("Can't embed", MonoPrint.p_typ MonoEnv.empty t);*)
+                  handle CantEmbed t => ((*ErrorMsg.errorAt loc "Unable to embed type in JavaScript";*)
+                                         Print.preface ("Can't embed type in JavaScript",
+                                                        MonoPrint.p_typ MonoEnv.empty t);
                                          (e, st)))
 
                | ESignalReturn e =>