datalust / superpower

A C# parser construction toolkit with high-quality error reporting
Apache License 2.0
1.05k stars 98 forks source link

Custom error message for Where combinator #117

Closed AndrewSav closed 3 years ago

AndrewSav commented 4 years ago

The default error message in Where combinator is somewhat unsatisfying. Can we have an option to provide our own?

var validatedIpOcted = ipOctet.Where(x => x<=255,"Octet has to be less than or equal to 255");
nblumhardt commented 4 years ago

Thanks for the suggestion :+1: