We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c771d commit 9737e53Copy full SHA for 9737e53
cli/ballerina-cli/src/main/java/io/ballerina/cli/task/CreateExecutableTask.java
@@ -134,6 +134,9 @@ public void execute(Project project) {
134
if (!emitResult.diagnostics().diagnostics().isEmpty() && !isHideTaskOutput) {
135
emitResult.diagnostics().diagnostics().forEach(d -> out.println("\n" + d.toString()));
136
}
137
+ if (emitResult.diagnostics().hasErrors()) {
138
+ throw createLauncherException("build failed due to errors");
139
+ }
140
141
} catch (ProjectException e) {
142
throw createLauncherException(e.getMessage());
0 commit comments