Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Main.gren
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ parseUserArgs model compilerPath =
|> Stream.Log.string model.stderr
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)

endWithErrorLine stringErr =
Stream.Log.line model.stderr stringErr
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)

endWithErrorString stringErr =
Stream.Log.string model.stderr stringErr
|> Task.map (\_ -> Task.execute <| Node.exitWithCode 1)
Expand All @@ -352,7 +356,7 @@ parseUserArgs model compilerPath =
in
when CLI.Parser.run model.args CliParser.parser is
CLI.Parser.UnknownCommand commandName ->
endWithErrorString ("I don't recognize this command: " ++ commandName)
endWithErrorLine ("I don't recognize this command: " ++ commandName)
Comment thread
robinheghan marked this conversation as resolved.
Outdated
|> Task.perform RunCmd

CLI.Parser.BadFlags err ->
Expand Down