Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_script_with_errors.ps1 « files « win_script « targets « integration « test - github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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"