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
basic-webserver on ξ HEAD (db94e89) via π¦ v1.79.0
β― cat platform/Path.roc | rg read_err
|> Result.mapErr? \read_err -> FileReadErr path (InternalIOErr.handle_err read_err)
basic-webserver on ξ HEAD (db94e89) via π¦ v1.79.0
β― roc format --migrate platform/Path.roc
basic-webserver on ξ HEAD (db94e89) [!] via π¦ v1.79.0
β― cat platform/Path.roc | rg read_err
|> Result.map_err?(|read_err| FileReadErr(path, InternalIOErr.handle_err(read_err)))
basic-webserver on ξ HEAD (db94e89) [!] via π¦ v1.79.0
β― roc version
roc built from commit 0e35e33f85, committed at 2025-01-28 09:57:55 UTC
Error:
+ roc check ./examples/dir.roc
ββ INVALID TRY TARGET in ./examples/../platform/Path.roc βββββββββββββββββββββββ
This expression cannot be tried with the ? operator:
310β |> Result.map_err?(|read_err| FileReadErr(path, InternalIOErr.handle_err(read_err)))
^^^^^^^^^^^^^^
I expected a Result, but it actually has type:
Result ok a, (a -> b) -> Result ok b
Hint: Did you forget to wrap the value with an Ok or an Err tag?
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 error and 0 warnings found in 25 ms.
The text was updated successfully, but these errors were encountered:
Error:
The text was updated successfully, but these errors were encountered: