From 850a3eabff92341da637c0b343bfa9d31c26fe44 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 21 Aug 2005 14:11:39 +0000 Subject: [PATCH] Better error message. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234205 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java b/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java index 74a5ef1e2..5909f3391 100644 --- a/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java +++ b/src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java @@ -839,7 +839,8 @@ public abstract class BreakingAlgorithm { protected int getLineWidth(int line) { if (this.lineWidth < 0) { - throw new IllegalStateException("lineWidth must be set"); + throw new IllegalStateException("lineWidth must be set" + + (this.lineWidth != 0 ? " and positive, but it is: " + this.lineWidth : "")); } else { return this.lineWidth; } -- 2.39.5