Skip to content

useMaskedErrors hides error's path #2091

Open
@Warxcell

Description

@Warxcell

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

  • 1. The issue provides a
    minimal reproduction available on
    Stackblitz.
    • Please install the latest @envelop/* packages that you are using.
    • Please make sure the reproduction is as small as possible.
  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

when using useMaskedErrors plugin - it hides the path

image

To Reproduce Steps to reproduce the behavior:

add useMaskedErrors

useMaskedErrors({
   errorMessage: 'Oops! Something went wrong.',
}),

Expected behavior

useMaskedErrors to replace only the message, not the error.path
image

Environment:

  • OS: archlinux
  • NodeJS: 20
  • @envelop/* versions:
    • @envelop/core: 5.0.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions