Play

Check-in [3b0a88175e]
Login
Overview
Comment:Detect errors in CLI.elm, and forward those errors to the terminal.
Timelines: family | ancestors | descendants | both | cli
Files: files | file ages | folders
SHA3-256: 3b0a88175ef441e9b19cc4ff5243ad3c0a16ee7925fccae6c8c64f31cc4b1a6c
User & Date: robin.hansen on 2021-04-07 13:01:40
Other Links: branch diff | manifest | tags
Context
2021-04-07
13:38
CLI now injects path to stdlib as a package path. Closed-Leaf check-in: 40164ce609 user: robin.hansen tags: cli
13:01
Detect errors in CLI.elm, and forward those errors to the terminal. check-in: 3b0a88175e user: robin.hansen tags: cli
12:58
Add standard library as a dependency when creating a project with the 'init' command. check-in: 34e9e1a068 user: robin.hansen tags: cli
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified src/CLI.elm from [7acb63136a] to [82a859cde1].

82
83
84
85
86
87
88





89
90
91
92
93
94
95
                                    , outgoingPort <| encodeCompilationDone wast
                                    )

                                Err error ->
                                    ( model
                                    , outgoingPort <| encodeCompilationFailure error
                                    )






                        _ ->
                            ( updatedModel
                            , sendSideEffectFromModel updatedModel
                            )

                Err decodeError ->







>
>
>
>
>







82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
                                    , outgoingPort <| encodeCompilationDone wast
                                    )

                                Err error ->
                                    ( model
                                    , outgoingPort <| encodeCompilationFailure error
                                    )

                        PackageLoader.Failed error ->
                            ( model
                            , outgoingPort <| encodeCompilationFailure <| Debug.toString error
                            )

                        _ ->
                            ( updatedModel
                            , sendSideEffectFromModel updatedModel
                            )

                Err decodeError ->