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

Add proper error handling #2

Open
programaker opened this issue May 21, 2019 · 0 comments
Open

Add proper error handling #2

programaker opened this issue May 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@programaker
Copy link
Owner

In the current version, errors coming from type refinement or IO are not being properly handled. The idea is:

  • Make all functions that can cause errors return Either[Error, A] (Refined already use Either, which makes things easier).

  • Create an ErrorStep, to inform the error to the player and quit the game. The message to the player should be high level, but it can provide a way to generate a low level error report to "send to the developers"

@programaker programaker added the enhancement New feature or request label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant