diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-03-04 13:47:16 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-03-04 13:47:16 -0500 |
commit | 44dd54e977e98bc68c94d4cccc344d2ee769e8ec (patch) | |
tree | 59d474ae7fde02a0d0cd787a576b3f4d25170106 /src/jscomp.sml | |
parent | 46e60fb6904b05340446e12d4a88a090b19b85fa (diff) |
Louder jscomp; toUpper/Lower fix for JavaScript
Diffstat (limited to 'src/jscomp.sml')
-rw-r--r-- | src/jscomp.sml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jscomp.sml b/src/jscomp.sml index ed913168..1e11fa32 100644 --- a/src/jscomp.sml +++ b/src/jscomp.sml @@ -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 @@ fun process file = | 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 => |