From 8b0f212ffa24fe18fa3671a890c57fe928b9df70 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 15 Nov 2006 06:08:40 +0000 Subject: [PATCH] fix a crappy error message. It said that a POM referenced itself, when the problem was that the expression referenced itself. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@475132 13f79535-47bb-0310-9956-ffa450edef68 --- .../project/interpolation/RegexBasedModelInterpolator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java b/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java index 8b79ecf377..6a790e11db 100644 --- a/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java +++ b/maven-project/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java @@ -166,7 +166,7 @@ public class RegexBasedModelInterpolator // if the expression refers to itself, skip it. if ( String.valueOf( value ).indexOf( wholeExpr ) > -1 ) { - throw new ModelInterpolationException( wholeExpr, model.getId() + " references itself." ); + throw new ModelInterpolationException( wholeExpr, "Expression value '" + value + "' references itself in '" + model.getId() + "'." ); } if ( value != null ) @@ -192,4 +192,4 @@ public class RegexBasedModelInterpolator return result; } -} \ No newline at end of file +}