Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluggable Pretty printing of exception via malli.core/-fail! #956

Closed
ikitommi opened this issue Sep 17, 2023 · 1 comment
Closed

Pluggable Pretty printing of exception via malli.core/-fail! #956

ikitommi opened this issue Sep 17, 2023 · 1 comment

Comments

@ikitommi
Copy link
Member

Malli internals should always throw via m/-fail!. We should have pluggable (zero-cost) exception renderer:

  1. default to current (fast throw)
  2. helper to plug in malli.pretty/printer|thrower

malli.dev/start! should auto-plug the pretty stuff.

=> any exception in dev-mode would be pretty printed.

@ikitommi ikitommi changed the title Pluggable Pretty printer. Pluggable Pretty printing of exception via malli.core/-fail! Sep 17, 2023
@ikitommi
Copy link
Member Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant