Improve api error message

This commit is contained in:
2024-07-02 11:06:15 +02:00
parent 7e00a1a296
commit da911120e8
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -32,6 +32,6 @@ export async function POST(request) {
return NextResponse.json({message: 'La validation a échoué !'}, {status: '400'})
}
return NextResponse.json({message: 'Erreur', status: 500})
return NextResponse.json({message: 'Une erreur sest produite, contactez ladministrateur !', status: 500})
}
}