snaps icon indicating copy to clipboard operation
snaps copied to clipboard

Review validation errors thrown

Open FrederikBolding opened this issue 2 years ago • 0 comments

Sometimes the errors thrown by superstruct are hard to understand because they don't include any details from the validation itself.

We should review the error messages we throw and try to improve them.

Example:

Failed to fetch Snap "local:http://localhost:8080/": At path: initialPermissions.endowment:cronjob.jobs.0.expression -- Expected a value of type string, but received: "0 0/1 0 ? * * *"

FrederikBolding avatar May 03 '23 13:05 FrederikBolding