Skip to content
Snippets Groups Projects
Commit aaba0823 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[backend] Use new formatting for error string generation

parent 0b6ace8b
No related branches found
No related tags found
1 merge request!184Fix scheduler error message
Pipeline #
...@@ -53,8 +53,8 @@ def scheduler(request): ...@@ -53,8 +53,8 @@ def scheduler(request):
response = scheduler_api(request) response = scheduler_api(request)
if response.status_code != 200: if response.status_code != 200:
messages.error(request, "Error contacting the scheduler at %s:%d " \ messages.error(request, "Error contacting the scheduler at {}:{} " \
"[%s/%d] %s" % (settings.SCHEDULER_ADDRESS, "[{}/{}] {}".format(settings.SCHEDULER_ADDRESS,
settings.SCHEDULER_PORT, response.status_text, settings.SCHEDULER_PORT, response.status_text,
response.status_code, response.data)) response.status_code, response.data))
return render_to_response('backend/scheduler.html', dict(), return render_to_response('backend/scheduler.html', dict(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment