Option to pass function #1

Open
opened 2 years ago by f0x · 0 comments
f0x commented 2 years ago

Currently message can only be a string, but it would be nice to pass a function that has access to the original error, and can return a custom message based on that

Currently `message` can only be a string, but it would be nice to pass a function that has access to the original error, and can return a custom message based on that
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: validatem/wrap-error#1
Loading…
There is no content yet.