summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-09-16 08:31:54 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-09-16 08:31:54 -0400
commitbd53c29db79488b2485427ebf3fa5ea5ed0df306 (patch)
tree2ac144743f319531bd98cb275cba38117b354ed6
parent22850e38ea15f120eb415b5e17a034cc74c995a8 (diff)
Better error message about signals remaining in server-side code
-rw-r--r--src/cjrize.sml4
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