MetaMask/snaps

Improve Superstruct error messages for invalid UI

Closed this issue · 0 comments

The error message for any part of your UI being invalid is currently:

Invalid params: At path: id — Expected a value of type string, but received: undefined.

This happens because we are wrongly selecting the error message based on the Superstruct failures. For developer experience purposes we will need to rectify this