Skip to content

Commit aefb9c2

Browse files
author
Hovsep
committed
Merge pull request Azure#992 from hovsepm/dev
Fixed error message at the end of setup script.
2 parents 92a9c55 + 75b0345 commit aefb9c2

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)