From 7939cb8c6beb87d574f655febf0c57b0eb78e1ad Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 29 Dec 2004 02:47:58 +0000 Subject: [PATCH] improved debug message darcs-hash:20041229024758-5007d-6d7d4df00b7f2988205b3c8afde1c20d0fb63006.gz --- src/org/ibex/core/Ibex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ibex/core/Ibex.java b/src/org/ibex/core/Ibex.java index 9427c20..28a0ab7 100644 --- a/src/org/ibex/core/Ibex.java +++ b/src/org/ibex/core/Ibex.java @@ -402,7 +402,7 @@ public final class Ibex extends JS implements JS.Cloneable { public JS call(JS a, JS b, JS c, JS[] rest, int nargs) throws JSExn { if (nargs != 1) throw new JSExn("can only call a template with one arg"); getStatic(); - if (t == null) throw new JSExn("No such template " + parentkey); + if (t == null) throw new JSExn("No such template " + JS.debugToString(parentkey)); if(!(a instanceof Box)) throw new JSExn("can only apply templates to boxes"); t.apply((Box)a); return a; -- 1.7.10.4