forked from tanner/qotnews
feat: Display detailed submission errors to user
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -131,7 +131,7 @@ def submit():
|
||||
except BaseException as e:
|
||||
logging.error('Problem with article submission: {} - {}'.format(e.__class__.__name__, str(e)))
|
||||
print(traceback.format_exc())
|
||||
abort(400)
|
||||
return {'error': str(e)}, 400
|
||||
|
||||
|
||||
@flask_app.route('/api/<sid>')
|
||||
|
||||
Reference in New Issue
Block a user