From 7eb0497acd45519ea23b05d7102bf06e32bb31bf Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Fri, 26 Jul 2024 09:54:46 +0200 Subject: [PATCH] error handling --- script/helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/helpers.py b/script/helpers.py index 1b463c5f1f..d06565ad7a 100644 --- a/script/helpers.py +++ b/script/helpers.py @@ -172,7 +172,7 @@ CONFIG_NEWLIB_LIBC=y encoding="utf-8", ) subprocess.run( - ["pio", "run", "-e", build_environment, "-d", build_dir], check=False + ["pio", "run", "-e", build_environment, "-d", build_dir], check=True ) def extract_include_paths(command): @@ -204,7 +204,8 @@ CONFIG_NEWLIB_LIBC=y input="", text=True, stderr=subprocess.PIPE, - check=False, + stdout=subprocess.DEVNULL, + check=True, ) include_paths = [] start_collecting = False