mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 17:08:23 +01:00
Improve error message
This commit is contained in:
parent
673779a2b9
commit
54d9084c0e
@ -24,10 +24,10 @@ try {
|
||||
set-location "$RepoDir"
|
||||
|
||||
& git fetch --all --recurse-submodules
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||
|
||||
& git switch --recurse-submodules $Branch
|
||||
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }
|
||||
if ($lastExitCode -ne "0") { throw "'git switch $Branch' failed" }
|
||||
|
||||
& git submodule update --init --recursive
|
||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed" }
|
||||
|
Loading…
Reference in New Issue
Block a user