🎨 (cookies helper) return error details
add error details in error intance of cookies helper
This commit is contained in:
@ -8,6 +8,6 @@ export const getCookie = (ctx: Context) => {
|
|||||||
const cookies = parse(cookiePayload!);
|
const cookies = parse(cookiePayload!);
|
||||||
return cookies;
|
return cookies;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new AppError(401, "Cookie not found");
|
throw new AppError(401, "Cookie not found", error);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user