Error Pages
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 full web page.
Example compiler error:
Contextual Help
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
Limited Access
Error pages are only displayed if any of the following is true:
- The app is running in
testServer
mode - When accessing the page from
devIp
, defined inconfig/app.jcon
- 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 data/files/app.log
.
Paths
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