mirror of https://github.com/apache/maven.git
Fix error message displayed when an error occurs during argument parsing
This commit is contained in:
parent
fee69f2f89
commit
c96ccce2fc
|
@ -51,7 +51,7 @@ public class DefaultMavenParser extends BaseMavenParser<MavenOptions, MavenInvok
|
|||
try {
|
||||
return CommonsCliMavenOptions.parse(source, args.toArray(new String[0]));
|
||||
} catch (ParseException e) {
|
||||
throw new ParserException("Failed to parse source " + source, e.getCause());
|
||||
throw new ParserException("Failed to parse source " + source + ": " + e.getMessage(), e.getCause());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue