Skip to content

Commit

Permalink
fix: unused var now used
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Jan 2, 2025
1 parent 6f3b9c7 commit 6293a96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/api/uploadFile/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function POST(request: Request) {
try {
jsonContent = JSON.parse(fileContent)
} catch (e) {
console.error("Erreur lors de la lecture du fichier JSON:", e)
return NextResponse.json(
{ error: "Le fichier doit être un JSON valide" },
{ status: 400 }
Expand Down

0 comments on commit 6293a96

Please sign in to comment.