From 1fe00a3902a48cf9ebf56387ff574623acdb7dba Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Thu, 25 Feb 2021 16:12:55 +0100 Subject: [PATCH] add build error handling for unix --- tools/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build.sh b/tools/build.sh index d3e4769c4f..32e88cfd29 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -133,7 +133,7 @@ main () { echo -e "${BIGreen}>>>${RST} Cleaning cache files ..." clean_pyc echo -e "${BIGreen}>>>${RST} Building ..." - poetry run python3 "$pype_root/setup.py" build > "$pype_root/build/build.log" + poetry run python3 "$pype_root/setup.py" build > "$pype_root/build/build.log" || { echo -e "${BIRed}!!!${RST} Build failed, see the build log."; return; } poetry run python3 "$pype_root/tools/build_dependencies.py" echo -e "${BICyan}>>>${RST} All done. You will find Pype and build log in \c"