From e4e0a026a894c640f6ee8cc05b693dc93aa1d0c6 Mon Sep 17 00:00:00 2001 From: Wang Zhuoxuan Date: Wed, 3 Jun 2026 10:39:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20errorHandler=20=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=9C=AA=E9=A2=84=E6=9C=9F=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E8=A2=AB=E9=9D=99=E9=BB=98=E5=90=9E=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/errors.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/errors.ts b/src/utils/errors.ts index 607c6ce..87e4ac9 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -77,7 +77,9 @@ export function errorHandler( return; } - // Unexpected errors + // Unexpected errors — log full details for debugging + _request.log.error({ err: error }, 'Unhandled error'); + reply.status(500).send({ success: false, data: null,