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
commitb1ae41e16f100084d9a1676335e4947d4484c040 (patch)
tree2ac144743f319531bd98cb275cba38117b354ed6
parentc5d8397eb399131837d7205eae3740a033196d66 (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