summaryrefslogtreecommitdiff
path: root/test/integration/targets/win_script/files/test_script_with_errors.ps1
blob: bdf7ee481ff02a1e9bad524bd39bdc5fa54858d4 (plain)
1
2
3
4
5
6
7
8
# Test script to make sure we handle non-zero exit codes.

trap {
    Write-Error -ErrorRecord $_
    exit 1
}

throw "Oh noes I has an error"