Skip to content

Commit 75b0345

Browse files
author
Hovsep Mkrtchyan
committed
Fixed error message at the end of setup script.
1 parent 92a9c55 commit 75b0345

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ To use Azure Service Management cmdlets please execute the following cmdlet:
5151
$VerbosePreference = "Continue"
5252
}
5353
}
54-
catch { Write-Output $error }
55-
if ($error) {
56-
Read-Host -Prompt "An error occured during installation. Press any key..."
54+
catch
55+
{
56+
Write-Output "An error occured during installation."
57+
Write-Output $error
58+
Write-Output "Press any key..."
59+
$host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
5760
}

0 commit comments

Comments
 (0)