From f0d925c5aae1482e715dd3874b2c5fe76df017f5 Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Sun, 14 Oct 2001 20:37:10 +0000 Subject: [PATCH] Make sure PropertyException messages are logged git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194506 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/Property.java | 7 +++---- src/org/apache/fop/fo/PropertyListBuilder.java | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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")) -- 2.39.5