Please sign in to comment.
Improved reporting for template compile errors
Previously when a template failed to compile (i.e., for CoffeeScript, HAML, SASS, etc.) a long, useless stack trace was produced. In such cases, the stack trace contains information about Sinatra internals that the web developer likely has little interest in. With this commit, for such errors only the actual error message (which might look like "Error: Parse error on line 190: Unexpected 'INDENT'") is shown to the user. This greatly improves the experience of writing web applications using compiled languages.
- Loading branch information...