mirror of
https://github.com/gren-lang/compiler.git
synced 2024-10-26 18:00:47 +03:00
Only print stderr on error, to avoid error messages being written twice.
This commit is contained in:
parent
4f392af3d2
commit
50585fa0da
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user