diff --git a/app/api/v1/record.py b/app/api/v1/record.py index ef2fea5..9edabd6 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -20,7 +20,7 @@ def add_record(json_data): weight=json_data['weight'], bmi=json_data['bmi']) except Exception as e: - raise AddBodyRecordError() + raise AddBodyRecordError(extra_data={'error_docs': str(e)}) return {'msg': 'add body record success'}