Skip to content

Commit 9bf5a07

Browse files
try this
1 parent 6947602 commit 9bf5a07

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pioreactorui/tasks.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,14 @@ def pio_run(*args: str, env: dict[str, str] = {}) -> bool:
7676

7777
env = {k: v for k, v in (env or {}).items() if k in ALLOWED_ENV}
7878
logger.info(f"Executing `{join(command)}`, {env=}")
79-
check_call(command, env=dict(os.environ) | env)
79+
run(command, env=dict(os.environ) | env, capture_output=True, text=True)
80+
81+
if result.returncode != 0:
82+
raise Exception(result.stderr.strip())
83+
84+
logger.info(result.stderr.strip())
85+
logger.info(result.stdout.strip())
86+
8087
return True
8188

8289

0 commit comments

Comments
 (0)