Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print pretty error message when Result.Failure is thrown (Backport #3391) #3393

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Aug 19, 2024

The new .getOrThrow API allows to short-circuit the result of a Result. This prints a correct error message when Result.Failure is thrown in a method returning T, instead of returned via a method returning Result[T].

Backport of pull request: #3391

Pull Request: #3393

…#3391)

The new `.getOrThrow` API allows to short-circuit the result of a
`Result`. This prints a correct error message when `Result.Failure` is
thrown in a method returning `T`, instead of returned via a method
returning `Result[T]`.

Pull Request: com-lihaoyi#3391
@lolgab lolgab changed the title Print pretty error message when Result.Failure is thrown (#3391) Print pretty error message when Result.Failure is thrown (Backport #3391) Aug 19, 2024
@lolgab lolgab requested a review from lihaoyi August 19, 2024 13:59
@lolgab
Copy link
Member Author

lolgab commented Aug 19, 2024

This PR backports the fix for Mill 0.11

@lolgab lolgab marked this pull request as ready for review August 19, 2024 15:44
@lolgab lolgab merged commit a710aaa into com-lihaoyi:0.11.x Aug 19, 2024
30 checks passed
@lefou lefou added this to the 0.11.12 milestone Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants