jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
146 stars 11 forks source link

Tera error handling #128

Open naturallymitchell opened 5 years ago

naturallymitchell commented 5 years ago

Tera can do so much more

all we have now is "Failed to render template [name]."

naturallymitchell commented 5 years ago

https://docs.rs/tera/1.0.0-alpha.2/tera/struct.Error.html#methods

Keats commented 5 years ago

Just noticed that following along from the panic report, do not use an alpha version yet except if you like to fix breaking changes :) Things will be more stable once a beta version is released and I would take feedback on the errors reporting as it is still a bit WIP right now.

naturallymitchell commented 5 years ago

can't you tell @Keats I love your alpha code :dancer: :dancer:

naturallymitchell commented 5 years ago

we now have Lua tracebacks with tera 1.x, but I still think we can get additional errors, like failed to parse at X line and others..

naturallymitchell commented 5 years ago

https://github.com/foundpatterns/tera/commit/0cb3d04ddc955f5fab62c84684faccdc5535fc78