https://git.reactos.org/?p=reactos.git;a=commitdiff;h=14fbe80c4aecc441f44a9…
commit 14fbe80c4aecc441f44a970560a3876662cc66c5
Author:     Nexware <42354287+nexos-dev(a)users.noreply.github.com>
AuthorDate: Sun Aug 1 18:40:43 2021 -0400
Commit:     GitHub <noreply(a)github.com>
CommitDate: Mon Aug 2 01:40:43 2021 +0300
    [CONFIGURE] Make configure.sh print out an error when CMake fails
---
 configure.sh | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/configure.sh b/configure.sh
index 9ff728088ef..f9c4679ad13 100755
--- a/configure.sh
+++ b/configure.sh
@@ -50,5 +50,9 @@ echo Preparing reactos...
 rm -f CMakeCache.txt host-tools/CMakeCache.txt
 cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE:BOOL=0
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-gcc.cmake -DARCH:STRING=$ARCH $EXTRA_ARGS
$ROS_CMAKEOPTS "$REACTOS_SOURCE_DIR"
+if [ $? -ne 0 ]; then
+    echo "An error occured while configuring ReactOS"
+    exit 1
+fi
 echo Configure script complete! Enter directories and execute appropriate build commands
\(ex: ninja, make, makex, etc...\).