Differences

This shows you the differences between the selected revisions of the page.

2017-10-04 2017-10-04
using variable expansion in strings in powershell (martin) using variable expansion in strings in powershell 2 (martin)
Line 61: Line 61:
catch [Exception] catch [Exception]
{ {
-    Write-Host ("Error: {0}" -f $_.Exception.Message)+    Write-Host "Error: $($_.Exception.Message)"
    exit 1     exit 1
} }

Last modified: by martin