In Lasso 8.x I created a customized error.lasso page in the LassoAdmin folder. I used the default error page template, plus some custom code at the end of the page to email me a copy of the error:
email_send(
-to='test@example.com',
-from='test@example.com',
-subject='[Report] Lasso Error ' + response_filepath,
-html=$__html_reply__
);
In Lasso 9, I can create a custom error page per the instructions on LassoGuide.com
http://lassoguide.com/language/error-handling.html?#error-reporting
To define a custom error page, create a file named “error.lasso” and place it in the root of the Web serving folder. Each host that has a distinct web serving folder can have a custom error page.
Custom error pages can be further fine-tuned by placing the “error.lasso” file in the web serving folder’s subdirectories. Lasso Server will process the first “error.lasso” it encounters on the file path, starting with the current directory and continuing upwards until it reaches the root of the web serving folder. If none are found, Lasso Server will use the default error report.
What is the Lasso 9 equivalent of $__html_reply__
? Is that a reasonable shortcut to coding a custom email template for error reporting?
You can use: content_body
You may also find error_stack useful