From 8689aa3c3144dbe6a7b67facd176cf0d7dbf8cc6 Mon Sep 17 00:00:00 2001 From: jfriedli Date: Fri, 17 Dec 2021 20:21:11 +0100 Subject: changed missing file part error message --- matweb/rest_api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'matweb') diff --git a/matweb/rest_api.py b/matweb/rest_api.py index 5784bec..49e7183 100644 --- a/matweb/rest_api.py +++ b/matweb/rest_api.py @@ -98,8 +98,10 @@ class APIClean(Resource): @swag_from('./oas/remove_metadata.yml') def post(self): if 'file' not in request.files: - current_app.logger.error('Clean - No file part') - abort(400, message='No file part') + current_app.logger.error( + 'Clean - File part missing: Multipart filename and non-chunked-transfer-encoding required' + ) + abort(400, message='File part missing: Multipart filename and non-chunked-transfer-encoding required') uploaded_file = request.files['file'] if not uploaded_file.filename: -- cgit v1.3