Skip to content

Commit

Permalink
[#1000] Fail on errors, not warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Aug 7, 2018
1 parent dc9eb58 commit 9720be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/WebSharper.Compiler.FSharp/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type WebSharperFSharpCompiler(logger, ?checker) =

TimedStage "Waiting on merged metadata"

if not <| Array.isEmpty checkProjectResults.Errors then
if checkProjectResults.Errors |> Array.exists (fun e -> e.Severity = FSharpErrorSeverity.Error) then
if assemblyName = "WebSharper.Main" || config.ProjectType = Some BundleOnly then
PrintFSharpErrors this.WarnSettings checkProjectResults.Errors
None
Expand Down

0 comments on commit 9720be2

Please sign in to comment.