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.
2 parents 3adc9f2 + da3a16d commit ac45e1eCopy full SHA for ac45e1e
http-server/src/Main.gren
@@ -56,13 +56,15 @@ update msg model =
56
case result of
57
Ok server ->
58
{ model = { model | server = Just server }
59
- , command = Stream.sendLine model.stdout
60
- "Server started"
+ , command =
+ Stream.sendLine model.stdout "Server started"
61
+ |> Task.execute
62
}
63
Err (ServerError code message) ->
64
{ model = model
- , command = Stream.sendLine model.stderr <|
65
- "Server failed to start: " ++ code ++ "\n" ++ message
66
+ Stream.sendLine model.stderr ("Server failed to start: " ++ code ++ "\n" ++ message)
67
68
69
70
GotRequest req res ->
0 commit comments