From 6ee83a53abab859ecc18d922a853145548a6065a Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 23 May 2021 12:10:58 +0200 Subject: [PATCH] Improve make-repo.ps1 --- Scripts/make-repo.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/make-repo.ps1 b/Scripts/make-repo.ps1 index f74d6f18..5389ee71 100755 --- a/Scripts/make-repo.ps1 +++ b/Scripts/make-repo.ps1 @@ -30,7 +30,7 @@ function MakeDir { param($Path) set-location "$Path/" & ./configure - if ($lastExitCode -ne "0") { throw "Executing 'configure' has failed" } + if ($lastExitCode -ne "0") { throw "Script 'configure' exited with error code $lastExitCode" } & make -j4 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } @@ -40,7 +40,7 @@ function MakeDir { param($Path) set-location "$Path/" & ./autogen.sh - if ($lastExitCode -ne "0") { throw "Script 'autogen.sh' has failed" } + if ($lastExitCode -ne "0") { throw "Script 'autogen.sh' exited with error code $lastExitCode" } & make -j4 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } @@ -77,7 +77,7 @@ function MakeDir { param($Path) set-location "$Path/" & ./compile.sh - if ($lastExitCode -ne "0") { throw "Script 'compile.sh' has failed" } + if ($lastExitCode -ne "0") { throw "Script 'compile.sh' exited with error code $lastExitCode" } & make -j4 if ($lastExitCode -ne "0") { throw "Executing 'make -j4' has failed" } @@ -87,7 +87,7 @@ function MakeDir { param($Path) set-location "$Path/attower/src/build/DevBuild/" & ./build.bat build-all-release - if ($lastExitCode -ne "0") { throw "Script 'build.bat' returned error(s)" } + if ($lastExitCode -ne "0") { throw "Script 'build.bat' exited with error code $lastExitCode" } } elseif (test-path "$Path/$DirName" -pathType container) { "⏳ No make rule found, trying subfolder 📂$($DirName)..."