Version: v0.5.1 - Beta.  We welcome contributors & feedback.  THanks!

Error Pages

Overview 

THT traps all errors and displays them in a formatted error page.

Runtime errors will include a full stack strace.

Security 

Paths

Error pages can often expose sensitive information, such as directory paths.

To limit this exposure, and improve readability, THT makes all paths relative to the app root.

// Example path:
/home/users/secretUserName/app/pages/home.tht

// Converted to:
pages/home.tht

Limited Access

Error pages are only displayed if any of the following is true:

Othwerwise, it will display a general error message and log the error information to data/files/app.log.

Debugging 

For basic troubleshooting, output from any print statements will be appended to the bottom of the error page.