Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

iainbeeston
Copy link
Contributor

If you run ErubiImplementation#validate! (as described in the readme) and there's a validation error it will print the line number and column but not the filename. You can pass the filename to erubi (like this BetterHtml::BetterErb::ErubiImplementation.new(data, config: BetterHtml.config, filename:).validate!) but ErubiImplementation doesn't use that information in it's error message.

I've updated runtime checks so that if the filename is passed to ErubiImplementation it will be used in error messages, which can really help when fixing errors.

If you run `ErubiImplementation#validate!` (as described in the readme) and there's a validation error it will print the line number and column but not the filename. You can pass the filename to erubi (like this `BetterHtml::BetterErb::ErubiImplementation.new(data, config: BetterHtml.config, filename:).validate!`) but `ErubiImplementation` doesn't use that information in it's error message.

I've updated runtime checks so that if the filename is passed to `ErubiImplementation` it will be used in error messages, which can really help when fixing errors.
@iainbeeston
Copy link
Contributor Author

I have signed the CLA!

@rafaelfranca rafaelfranca merged commit 685cfca into Shopify:main Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants