Skip to content

Error: Failed to generate a codec #6

@anilanar

Description

@anilanar

I have no idea what might be going wrong as the actual problem is not output.

Would you be open to some refactoring with one of the following solutions:

  1. Early exit with descriptive error message
  2. Collect error messages and output them when done

For handling/collecting errors, would you prefer Either from fp-ts or go dependency free and add another argument on the visitor such as errors: Error[]?

I'm not yet sure what might be throwing errors in handleDeclaration and what kind of errors they are, but I guess those errors can be mapped to something more descriptive with file name or original declaration string etc.

I'd like to contribute to get a t-shirt from Octoberfest 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions