Skip to content

Commit

Permalink
debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalmishraa committed Oct 25, 2024
1 parent 792fe36 commit daacf13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/api/submission/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export async function POST(req: NextRequest) {
console.log(error.message)
return NextResponse.json(
{
message: "something went wrong",
message: error.message,
status: 500
}
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/problem-page/SubmitProblem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function SubmitProblem({

if (response.data.status != 200) {
setStatus(SubmitStatus.FAILED);
toast.error("Something went wrong");
toast.error(response.data.message);
return;
};

Expand Down

0 comments on commit daacf13

Please sign in to comment.