PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/test/integration/roles/test_win_script/files/test_script_with_errors.ps1

https://github.com/ajanthanm/ansible
Powershell | 9 lines | 6 code | 2 blank | 1 comment | 0 complexity | 151552517a29aa4950741cbfbc72d983 MD5 | raw file
1# Test script to make sure we handle non-zero exit codes.
2
3trap
4{
5    Write-Error -ErrorRecord $_
6    exit 1;
7}
8
9throw "Oh noes I has an error"