Differences
This shows you the differences between the selected revisions of the page.
| 2014-09-10 | 2014-09-10 | ||
| simplifying code (martin) | old revision restored (martin) | ||
| Line 161: | Line 161: | ||
| } | } | ||
| - | # Dumping session log to Azure log (standard output) when it exists | + | $result = 0 |
| - | if (Test-Path $sessionLogPath) | + | |
| - | { | + | |
| - | Write-Output "Session log:" | + | |
| - | Get-Content $sessionLogPath | + | |
| - | } | + | |
| - | + | ||
| - | exit 0 | + | |
| } | } | ||
| catch [Exception] | catch [Exception] | ||
| { | { | ||
| Write-Output $_.Exception.Message | Write-Output $_.Exception.Message | ||
| - | exit 1 | + | $result = 1 |
| } | } | ||
| + | |||
| + | # Dumping session log to Azure log (standard output) when it exists | ||
| + | if (Test-Path $sessionLogPath) | ||
| + | { | ||
| + | Write-Output "Session log:" | ||
| + | Get-Content $sessionLogPath | ||
| + | } | ||
| + | |||
| + | # Reporting result to Azure | ||
| + | exit $result | ||
| </code> | </code> | ||