sempare / sempare-delphi-template-engine

Sempare Template (scripting) Engine for Delphi allows for flexible dynamic text generation. It can be used for generating email, html, reports, source code, xml, configuration, etc.
Apache License 2.0
144 stars 18 forks source link

Improve error response on 'include' when referencing data that does not exist #25

Closed darnocian closed 3 years ago

darnocian commented 3 years ago

Normally, when dereferencing a variable in a record or class, an error should be returned identifying the issue.

Recently used the include(templateName, data), where 'data' did not exist (was named something else). Instead it raised an access violation.

darnocian commented 3 years ago

Could not reproduce access violation. Added tests to illustrate behaviour.