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;