Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/dev/jbang/cli/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static class ScriptInfo {
String gav;
String module;
Map<String, List<ProjectFile>> docs;
String error;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we don't have multiple errors at this moment but I do think we will so how about we make this one an array/list and ensure we dont break parsing.


public ScriptInfo(Project prj, Path buildDir, boolean assureJdkInstalled) {
originalResource = prj.getResourceRef().getOriginalResource();
Expand All @@ -130,7 +131,8 @@ public ScriptInfo(Project prj, Path buildDir, boolean assureJdkInstalled) {
BuildContext ctx = BuildContext.forProject(prj, buildDir);
init(ctx);
} catch (Exception e) {
Util.warnMsg("Unable to obtain full information, the script probably contains errors", e);
Util.warnMsg("Unable to obtain full information, because of: " + e.getMessage(), e);
error = e.getMessage();
}

try {
Expand Down
Loading