Commit eeb2154d authored by Felipe Fonseca's avatar Felipe Fonseca
Browse files

Added exception message during test updated to JSON response

parent 3300054a
......@@ -116,6 +116,7 @@ def update_test(request):
response = {'success': True}
except Exception as e:
response['exception'] = str(e)
print(e)
return JsonResponse(response, json_dumps_params={'indent': 2})
......@@ -148,6 +149,7 @@ def run_test(request):
os.system(script_file)
response = {'success': True}
except Exception as e:
response['exception'] = str(e)
print(e)
return JsonResponse(response, json_dumps_params={'indent': 2})
......
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