From f7152e9ac6fd300c19e7f6f8eb9f9bbc5d9425ab Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 12 Jul 2009 22:05:39 +0000 Subject: [PATCH] Throw a build exception if Velocity freaks out. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5863 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/tools/GenDObjectTask.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/tools/GenDObjectTask.java b/src/java/com/threerings/presents/tools/GenDObjectTask.java index 845a96b66..1b12c6344 100644 --- a/src/java/com/threerings/presents/tools/GenDObjectTask.java +++ b/src/java/com/threerings/presents/tools/GenDObjectTask.java @@ -249,8 +249,7 @@ public class GenDObjectTask extends Task _velocity.mergeTemplate( BASE_TMPL + tname, "UTF-8", ctx, mwriter); } catch (Exception e) { - System.err.println("Failed processing template"); - e.printStackTrace(System.err); + throw new BuildException("Failed processing template", e); } // and append them as appropriate to the string buffers