sunng87 / handlebars-iron

Handlebars middleware for Iron web framework
MIT License
119 stars 20 forks source link

No error message shown when file not found #14

Closed gsingh93 closed 8 years ago

gsingh93 commented 8 years ago

When a template isn't found, an error should be displayed. Alternatively, constructing a template can return an Option.

sunng87 commented 8 years ago

You can now catch render error with a middleware: https://github.com/sunng87/handlebars-iron/blob/master/examples/error.rs

By default, our middleware will return HTTP 500 on render error. Detailed render error will be available when upstream is ready.