From 577cc85851527d91299cca8df0144d1ea69d4ba4 Mon Sep 17 00:00:00 2001 From: handsomeFu Date: Mon, 26 Aug 2024 20:32:02 +0800 Subject: [PATCH] fix: change deprecated func (#4236) --- apps/backend-mock/error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;