Commit a3c9772f authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

make the api job creation errors a bit more human-friendly

(do not display the exception type)
parent a74d3847
......@@ -76,7 +76,7 @@ def jobs(request):
except ValidationError as e:
return JsonResponse({'error': "Invalid parameters: %s" % e.error_dict}, status=400)
return JsonResponse({'error': "Invalid parameters: %s" % e.message_dict}, status=400)
# FIXME: possible infoleak: because we have ATOMIC_REQUESTS=True the
# current id can be reused for another job in case anything fails before
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment