From: Karen Lease Date: Sun, 14 Oct 2001 20:37:10 +0000 (+0000) Subject: Make sure PropertyException messages are logged X-Git-Tag: fop-0_20_3~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f0d925c5aae1482e715dd3874b2c5fe76df017f5;p=xmlgraphics-fop.git Make sure PropertyException messages are logged git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194506 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/Property.java b/src/org/apache/fop/fo/Property.java index 102ab7636..7aa9745ac 100644 --- a/src/org/apache/fop/fo/Property.java +++ b/src/org/apache/fop/fo/Property.java @@ -188,10 +188,9 @@ public class Property { } return pret; } catch (org.apache.fop.fo.expr.PropertyException propEx) { - //MessageHandler.errorln("Error in " + propName - // + " property value '" + value + "': " - // + propEx); - throw new FOPException("Property error"); + throw new FOPException("Error in " + propName + + " property value '" + value + "': " + + propEx); } } diff --git a/src/org/apache/fop/fo/PropertyListBuilder.java b/src/org/apache/fop/fo/PropertyListBuilder.java index 19db4e7fd..f5f11a82d 100644 --- a/src/org/apache/fop/fo/PropertyListBuilder.java +++ b/src/org/apache/fop/fo/PropertyListBuilder.java @@ -166,6 +166,7 @@ public class PropertyListBuilder { p.put(propName, propVal); } } catch (FOPException e) { /* Do other props. */ + MessageHandler.errorln(e.getMessage()); } } else { if (!attributeName.startsWith("xmlns"))