Provide a bit more information in the log why it failed

This commit is contained in:
Ruben van Staveren 2023-01-16 17:13:35 +01:00
parent 59ecd48210
commit a6796bbf72
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -191,6 +191,8 @@ def create_app():
Show a json parsable error if the value is illegal
'''
app.logger.fatal(error)
app.logger.fatal('stdout: %s', error.stderr)
app.logger.fatal('stderr: %s', error.stderr)
return jsonify({'error': str(error)}), 500
@app.errorhandler(FileNotFoundError)