diff options
Diffstat (limited to 'org/madore/damlengine/TodoStyleOrScript.java')
-rw-r--r-- | org/madore/damlengine/TodoStyleOrScript.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoStyleOrScript.java b/org/madore/damlengine/TodoStyleOrScript.java index 7b06955..4c04528 100644 --- a/org/madore/damlengine/TodoStyleOrScript.java +++ b/org/madore/damlengine/TodoStyleOrScript.java @@ -17,7 +17,7 @@ public class TodoStyleOrScript extends TodoItem { public void handle() { if ( ctx.headNode == null ) - throw new Error("head node is null when doing style or script"); + throw new IllegalArgumentException("head node is null when doing style or script"); Element node = ctx.doc.createElementNS(DamlEngine.XHTML_NS, (t==Type.SCRIPT)?"script":"style"); |