about summary refs log tree commit diff
path: root/gn3/computations
diff options
context:
space:
mode:
authorAlexander_Kabui2025-01-23 14:17:33 +0300
committerBonfaceKilz2025-02-06 12:43:15 +0300
commit64d1271440a0769fc492dea1361005b64984596e (patch)
tree86257dc7dea3e518ec7400eea3d0680892f1d8ea /gn3/computations
parentd6a568791349d5ea2733ba6bb07dc9652de8ecf3 (diff)
downloadgenenetwork3-64d1271440a0769fc492dea1361005b64984596e.tar.gz
refactor: return code for Calledprocesserror response.
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/streaming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/streaming.py b/gn3/computations/streaming.py
index b5afb5b..78ce23b 100644
--- a/gn3/computations/streaming.py
+++ b/gn3/computations/streaming.py
@@ -33,7 +33,7 @@ def run_process(cmd, output_file, run_id):
         return {"msg": "error occurred", "error": "Process failed",
                 "code": process.returncode, "run_id": run_id}
     except subprocess.CalledProcessError as error:
-        return {"msg": "error occurred",
+        return {"msg": "error occurred", "code":error.returncode,
                 "error": str(error), "run_id": run_id}