Skip to content

Rework backend error handling #1203

Description

@cj-young

Currently, errors in the server are caught in try/catch blocks and usually handled in controllers. Currently, there isn't a standardized format for error messages. Sometimes, error messages are returned as strings, other times as objects with errors property. This makes handling errors on the frontend more difficult and requires a lot of repetitive response creation upon errors (as well as difficulty in propagating error messages in deeply nested functions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions