-
-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
Description
Minor nit: Please set the showConstraintMessages parameter to ValidationError.toString() to true when validating headers, here:
webpack-userscript/lib/features/validate-headers/impl.ts
Lines 54 to 56 in 5bca4c8
| if (errors.length > 0) { | |
| throw new Error(errors.map((err) => err.toString()).join('\n')); | |
| } |
If you use err.toString(undefined, undefined, undefined, true) there then the validator message is shown rather than the name, which is a bit more informative. Compare
- property updateURL has failed the following constraints: isUrl
with
- property updateURL has failed the following constraints: updateURL must be a URL address