diff --git a/apps/backend-mock/error.ts b/apps/backend-mock/error.ts index 5d3d247ad..e20beac4e 100644 --- a/apps/backend-mock/error.ts +++ b/apps/backend-mock/error.ts @@ -1,7 +1,7 @@ import type { NitroErrorHandler } from 'nitropack'; const errorHandler: NitroErrorHandler = function (error, event) { - event.res.end(`[error handler] ${error.stack}`); + event.node.res.end(`[Error Handler] ${error.stack}`); }; export default errorHandler;