From 290484c74a71669160ac089e26f23da4b8e90016 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 11 Feb 2003 09:26:23 +0000 Subject: [PATCH] Fixed copy/paste error. A confusing error message was constructed when the embedFile attribute was bad. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195936 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/configuration/FontInfo.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/configuration/FontInfo.java b/src/org/apache/fop/configuration/FontInfo.java index 2340e15a3..b9df4a6be 100644 --- a/src/org/apache/fop/configuration/FontInfo.java +++ b/src/org/apache/fop/configuration/FontInfo.java @@ -44,7 +44,8 @@ public class FontInfo { try { return URLBuilder.buildURL(Configuration.getFontBaseURL(), metricsFile); } catch (Exception e) { - throw new FOPException("Invalid font metrics file: "+metricsFile+" ("+e.getMessage()+")"); + throw new FOPException("Invalid font metrics file: " + metricsFile + + " (" + e.getMessage() + ")"); } } @@ -57,7 +58,8 @@ public class FontInfo { try { return URLBuilder.buildURL(Configuration.getFontBaseURL(), embedFile); } catch (Exception e) { - throw new FOPException("Invalid font file (embedFile): "+metricsFile+" ("+e.getMessage()+")"); + throw new FOPException("Invalid font file (embedFile): " + embedFile + + " (" + e.getMessage() + ")"); } } -- 2.39.5