summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/win_script/files/test_script_with_errors.ps1
blob: 56f97735482639cd9213ae6b2048cb44c1c6a78f (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"