licensing cleanup (GPLv2)
[org.ibex.core.git] / src / org / ibex / core / Ibex.java
index 9427c20..270e138 100644 (file)
@@ -1,4 +1,7 @@
-// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the GNU General Public License version 2 ("the License").
+// You may not use this file except in compliance with the License.
+
 package org.ibex.core;
 
 import java.io.*;
@@ -402,7 +405,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;