From 4666392bbc34e693f21895ccb62abb816ff95874 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 12 Jan 2023 11:42:19 +0300 Subject: bug: use stderr in case of job errors --- wqflask/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index a7a43a22..466de7da 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -874,7 +874,7 @@ def corr_compute_page(): return render_template("correlation_page.html", **output) if jobs.completed_erroneously(job): - output = json.loads(job.get("stdout", "{}")) + output = json.loads(job.get("stderr", "{}")) return render_template("correlation_error_page.html", error=output) return render_template("loading_corrs.html") -- cgit v1.2.3