diff --git a/backend/src/controllers/questions.ts b/backend/src/controllers/questions.ts index 26efb4f4..4df165ee 100644 --- a/backend/src/controllers/questions.ts +++ b/backend/src/controllers/questions.ts @@ -144,7 +144,7 @@ export async function createQuestionHandler(req: Request, res: Response): Promis const questionDTO = req.body as QuestionDTO; if (!questionDTO.learningObjectIdentifier || !questionDTO.author || !questionDTO.inGroup || !questionDTO.content) { - res.status(400).json({ error: 'Missing required fields: identifier and content' }); + res.status(400).json({ error: 'Missing required fields: identifier, author, inGroup, and content' }); return; }