When an error occurs, THT tries to help you can quickly figure out what went wrong and how to fix it.
Error messages are written in a clear and direct style, and are presented in a fullscreen web page.
Example compiler error:
Runtime errors include a formatted stack strace, with a summary of the arguments passed to each function.
If possible, THT provides suggestions and links to relevant documentation.
Error Page Security
Error pages are only displayed if any of the following is true:
- The app is running in
- When accessing the page from
devIp, defined in
- It has been less than 10 minutes since your app code was last updated
Othwerwise, THT will display a general error message and log the error information to
To limit the exposure of sensitive directory paths, and also improve readability, all paths are relative to the app root.
// Example path: /home/users/secretUserName/app/code/pages/home.tht // Converted to: pages/home.tht
For basic troubleshooting, output from any
sendErrors is set to
true in your
config/app.jcon, anonymous error information will be sent to
This will help the THT developers fix bugs and find patterns that can further improve the usability of the language.