Skip to content

Different error message for dev and prod environments #67

@ilzrv

Description

@ilzrv

Is there a way for different environments (development, production) to use different error descriptions?

For example, in a dev environment, errors can be displayed completely:

{
    "code": "internal",
    "msg": "internal error",
    "meta": {
        "cause": "Secret Exception Message"
    }
}

But in the prod environment the original error message should be hidden:

{
    "code": "internal",
    "msg": "internal error",
    "meta": {
        "cause": "Internal Server Error"
    }
}

Is there any possibility to implement this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions