Hi,
in my Application.cfc I have an onMissingTemplate and an onError Block:
public void function onMissingTemplate(String targetPage){
include “404.cfm”;
}
public void function onError(Any Exception, String EventName){
include “500.cfm”;
}
But if I hit www.example.com/.cfm
which is a test from Qualys, it renders the default error page from Lucee
showing a missinginclude error, with stracktrace etc.
Lucee Version 4.5.1.022
Thank you for the quick response…I will give that a shot. And for more context I am using Coldbox which is handling the 404 but I am guessing to your point it is returning false to throw the onError.
public boolean function onMissingTemplate( template ){
return application.cbBootstrap.onMissingTemplate( argumentCollection=arguments );
}