Skip to content

Commit

Permalink
Fix printing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ShammiL committed Dec 22, 2023
1 parent 6ec870d commit 86947a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public RunBallerinaPreBuildToolsTask(PrintStream out) {
public void execute(Project project) {
Collection<Diagnostic> toolDiagnostics = project.currentPackage().manifest().diagnostics().diagnostics();
boolean hasTomlErrors = project.currentPackage().manifest().diagnostics().hasErrors();
toolDiagnostics.forEach(outStream::println);
if (hasTomlErrors) {
toolDiagnostics.forEach(outStream::println);
throw createLauncherException("compilation contains errors");
}
List<Tool> tools = project.currentPackage().manifest().tools();
Expand Down

0 comments on commit 86947a5

Please sign in to comment.