Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyRAV committed Sep 16, 2024
1 parent 8e472cf commit ca79441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/quizController.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const saveQuizResults = async (req, res) => {
res.status(201).json(formattedResponse);
} catch (error) {
console.error('Error saving quiz data:', error);
res.status(500).json({error: 'An error occurred while saving quiz data.'});
res.status(500).json({message: 'An error occurred while saving quiz data.', error: error});
}
};

Expand Down

0 comments on commit ca79441

Please sign in to comment.