diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-09-16 08:31:54 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-09-16 08:31:54 -0400 |
commit | bd53c29db79488b2485427ebf3fa5ea5ed0df306 (patch) | |
tree | 2ac144743f319531bd98cb275cba38117b354ed6 /src | |
parent | 22850e38ea15f120eb415b5e17a034cc74c995a8 (diff) |
Better error message about signals remaining in server-side code
Diffstat (limited to 'src')
-rw-r--r-- | src/cjrize.sml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cjrize.sml b/src/cjrize.sml index a0ec2ece..9e41fda4 100644 --- a/src/cjrize.sml +++ b/src/cjrize.sml @@ -162,7 +162,9 @@ fun cifyTyp x = ((L'.TList (t', si), loc), sm) end | L.TSource => ((L'.TFfi ("Basis", "source"), loc), sm) - | L.TSignal _ => raise Fail "Cjrize: TSignal remains" + | L.TSignal _ => (ErrorMsg.errorAt loc "TSignal remains"; + Print.epreface ("Full type", MonoPrint.p_typ MonoEnv.empty (#1 x)); + ((L'.TFfi ("Basis", "bogus"), loc), sm)) in cify IM.empty x end |