Skip to content

Commit

Permalink
feat: add console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
unewMe committed Sep 10, 2024
1 parent 47e5476 commit 79ae6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/data/[facultyId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}

Expand Down

0 comments on commit 79ae6ae

Please sign in to comment.