Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added error management #7

Closed
wants to merge 11 commits into from
Closed

Added error management #7

wants to merge 11 commits into from

Conversation

Cadichon
Copy link
Contributor

Added an option (throwErrorOnUndefined);
Added data check;

When throwErrorOnUndefined = true, carbone will throw error on unvalid or undefine data.
Example :
data = { } and xml = {d.name} <\xml>
will throw "Error: data.name is undefined"

@dgrelaud
Copy link
Member

Hello Léo !
I close the pull request.
We have a better solution for v2.1 ;)

@dgrelaud dgrelaud closed this Jun 28, 2020
@ilandblack
Copy link

Hi.
I can't find any error handling about missing fields in current version. Is there any?

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.

3 participants