Skip to content

Commit 5ebb5a4

Browse files
committed
fix(Compiler): if all errors are not exceptions return error code 0
1 parent d715a06 commit 5ebb5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private static async Task<int> Main(string[] args) {
133133
}
134134
LogManager.Shutdown();
135135

136-
return Errors.IsEmpty ? 0 : 1;
136+
return Errors.IsEmpty ? 0 : Errors.All(e => !e.IsExceptional) ? 0 : 1;
137137
}
138138

139139
public static void CleanInput(Options opts) {

0 commit comments

Comments
 (0)