Debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 49s

This commit is contained in:
Alan Bridgeman 2025-06-23 19:42:53 -05:00
parent 744bcb82e3
commit d8e8c3bbcd

View file

@ -63,6 +63,8 @@ export function Page(title: string, page: string, extraScripts: (string | { scri
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
const original = descriptor.value;
console.log('[Page Decorator] Original:', original);
// If the original function has more than 3 parameters, we can assume it is an error handler
// An error handler starts with the error object, then the request, response and next functions.
if(original.length > 3) {