We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b55c2 commit ef9d84dCopy full SHA for ef9d84d
backend/app.py
@@ -82,7 +82,10 @@ def sort():
82
})
83
except Exception as e:
84
builtins.print = original_print
85
- return jsonify({'error': str(e)}), 500
+ # Log the actual error server-side
86
+ app.logger.error(f'Sorting error: {str(e)}')
87
+ # Return generic error message to client
88
+ return jsonify({'error': 'An internal server error occurred'}), 500
89
90
if __name__ == '__main__':
91
app.run(debug=True, port=5001)
0 commit comments