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
This commit is contained in:
Brett Leslie Porter 2006-11-15 06:08:40 +00:00
parent e5a230eb86
commit 8b0f212ffa
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ public class RegexBasedModelInterpolator
// if the expression refers to itself, skip it. // if the expression refers to itself, skip it.
if ( String.valueOf( value ).indexOf( wholeExpr ) > -1 ) 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 ) if ( value != null )