Skip to content

With error numbers being strings it is easy to mistype #1126

Open
@ghaith

Description

@ghaith

Now that we converted error numbers to strings, it might be too easy to use invalid numbers. It is also not that easy to find if an existing number already fits your usecase.
We should discuss strategies to make this less error-prone.
One possiblity is to have the errors as constant strings and hope the user will use them instead of giving out strange strings.
We should also validate if the user defines invalid strings in the json (another story). Or if the programmer uses an invalid error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlow-priorityrefactorinternal change, cleanup, code-style-improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions