Skip to content

Add proper error handling #2

@programaker

Description

@programaker

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions