Fix error message displayed when an error occurs during argument parsing

This commit is contained in:
Guillaume Nodet 2024-10-09 20:45:29 +02:00
parent fee69f2f89
commit c96ccce2fc
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
}