You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform/main.roc
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,8 @@ mainForHost! = \_ ->
34
34
if Str.isEmpty msg then
35
35
code
36
36
else
37
-
when Stderr.line! msg is
38
-
Ok {} -> code
39
-
Err (StderrErr_) -> code
37
+
_= Stderr.line! msg
38
+
code
40
39
41
40
Err msg ->
42
41
@@ -48,6 +47,5 @@ mainForHost! = \_ ->
48
47
Tip: If you do not want to exit on this error, use `Result.mapErr` to handle the error. Docs for `Result.mapErr`: <https://www.roc-lang.org/builtins/Result#mapErr>
0 commit comments