Only print stderr on error, to avoid error messages being written twice.

This commit is contained in:
Robin Heggelund Hansen 2024-06-10 21:35:47 +02:00
parent 4f392af3d2
commit 50585fa0da
No known key found for this signature in database

View File

@ -268,8 +268,7 @@ update msg model =
CompilerExecuted (Err output) ->
{ model = model
, command =
Stream.send model.stdout output.stdout
|> Task.andThen (\_ -> Stream.send model.stderr output.stderr)
Stream.send model.stderr output.stderr
|> Task.andThen (\_ -> Node.exitWithCode output.exitCode)
|> Task.execute
}