Edit missing field error message.

This commit is contained in:
HugoNeveux 2020-04-27 18:54:42 +02:00
parent fe5da22985
commit f7e92f81af

View File

@ -62,7 +62,7 @@ class UploadView(LoginRequiredMixin, FormView):
for required_field in REQUIRED_FIELDS:
if not required_field in module_info.keys():
return JsonResponse({'error': f'Field {required_field}\
is missing.'}, status=500)
is missing in infos.toml.'}, status=500)
shutil.rmtree(extract_path)
os.remove(zip_path)
if Module.objects.filter(name=module_info['name'].lower(),