Skip to content

Commit 99991a2

Browse files
committed
Remove newly-added endWithErrorLine and just append "\n"
Keep it simple
1 parent f0f4606 commit 99991a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Main.gren

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@ parseUserArgs model compilerPath =
342342
|> Stream.Log.string model.stderr
343343
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)
344344

345-
endWithErrorLine stringErr =
346-
Stream.Log.line model.stderr stringErr
347-
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)
348-
349345
endWithErrorString stringErr =
350346
Stream.Log.string model.stderr stringErr
351347
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)
@@ -356,7 +352,7 @@ parseUserArgs model compilerPath =
356352
in
357353
when CLI.Parser.run model.args CliParser.parser is
358354
CLI.Parser.UnknownCommand commandName ->
359-
endWithErrorLine ("I don't recognize this command: " ++ commandName)
355+
endWithErrorString ("I don't recognize this command: " ++ commandName ++ "\n")
360356
|> Task.perform RunCmd
361357

362358
CLI.Parser.BadFlags err ->

0 commit comments

Comments
 (0)