🎨 (cookies helper) return error details

add error details in error intance of cookies helper
This commit is contained in:
rafiarrafif
2025-06-24 16:55:30 +07:00
parent 09346ad9e5
commit 32b5205d16

View File

@ -8,6 +8,6 @@ export const getCookie = (ctx: Context) => {
const cookies = parse(cookiePayload!);
return cookies;
} catch (error) {
throw new AppError(401, "Cookie not found");
throw new AppError(401, "Cookie not found", error);
}
};