[MNG-4623] model parsing errors can be less helpful in Maven 3

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@931492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-04-07 10:21:05 +00:00
parent 95022ebf36
commit fc7636db41
1 changed files with 9 additions and 1 deletions

View File

@ -362,7 +362,15 @@ public class DefaultModelBuilder
options.put( ModelProcessor.IS_STRICT, Boolean.FALSE );
model = modelProcessor.read( modelSource.getInputStream(), options );
try
{
model = modelProcessor.read( modelSource.getInputStream(), options );
}
catch ( ModelParseException ne )
{
// still unreadable even in non-strict mode, rethrow original error
throw e;
}
if ( pomFile != null )
{