From 79ae6ae4332cbb7f0f47589de956703579cf043e Mon Sep 17 00:00:00 2001 From: unewMe Date: Tue, 10 Sep 2024 23:40:14 +0200 Subject: [PATCH] feat: add console logs --- src/app/api/data/[facultyId]/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api/data/[facultyId]/route.ts b/src/app/api/data/[facultyId]/route.ts index 9133bf0..9ec9f08 100644 --- a/src/app/api/data/[facultyId]/route.ts +++ b/src/app/api/data/[facultyId]/route.ts @@ -34,7 +34,8 @@ export async function GET( } catch (error) { // eslint-disable-next-line no-console console.error(error); - return new Response("Internal Server Error", { status: 500 }); + // eslint-disable-next-line @typescript-eslint/restrict-template-expressions + return new Response(`Internal Server Error ${error}`, { status: 500 }); } }