Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/routes/quizzes.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def generate_ai_quiz():

except Exception as e:
print(f"❌ AI generation error: {str(e)}")
return jsonify({"success": False, "error": str(e)}), 500
return jsonify({"success": False, "error": "An internal error has occurred."}), 500

@bp.route('/room/<room_code>/generate-ai-questions', methods=['POST', 'OPTIONS'])
def generate_ai_questions(room_code):
Expand Down Expand Up @@ -734,7 +734,7 @@ def generate_ai_questions(room_code):

except Exception as e:
print(f"❌ AI generation error: {str(e)}")
return jsonify({"success": False, "error": str(e)}), 500
return jsonify({"success": False, "error": "An internal error has occurred."}), 500

# ===================================================================
# ✅ DEBUG ENDPOINT FOR TROUBLESHOOTING
Expand Down
Loading