improve log output for error cases by showing more details about what exactly went wrong

This commit is contained in:
Martin Lippert
2022-12-23 16:02:52 +01:00
parent ee917fbbdb
commit 565dcdf782
2 changed files with 5 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ public class ProjectVersionDiagnosticProvider {
URI buildFileUri = javaProject.getProjectBuild() == null ? null : javaProject.getProjectBuild().getBuildFile();
if (buildFileUri == null) {
throw new Exception("Unable to find build file in project while computing version validation for: ");
throw new Exception("Unable to find build file in project while computing version validation for: " + javaProject.getElementName());
}
Version javaProjectVersion = SpringProjectUtil.getSpringBootVersion(javaProject);