paradox icon indicating copy to clipboard operation
paradox copied to clipboard

Bad error description on invalid email link in paradoxValidateLinks

Open Dollyg opened this issue 5 years ago • 2 comments

I have this text in my docs [email protected] which is not a valid email link.

The error I get is very undescriptive.

(docs / Paradox / paradoxValidateLinks) java.lang.IllegalArgumentException: Illegal character in fragment at index 15: mailto:x@y.z

Having atleast filename, linenumber would be very helpful.

Dollyg avatar Feb 17 '20 06:02 Dollyg

I agree! Would you be interested in trying to improve this? I think an ErrorContext is available during most of the validation, if you can catch this IllegalArgumentException and report it through ErrorContext, including the file that is being validated, that should help it report a better error.

raboof avatar Feb 17 '20 08:02 raboof

Will definitely give it a try. Thanks!

Dollyg avatar Feb 17 '20 09:02 Dollyg