Differences
This shows you the differences between the selected revisions of the page.
| 2014-09-09 | 2014-09-10 | ||
| fixing word order (martin) | simplifying code (martin) | ||
| Line 161: | Line 161: | ||
| } | } | ||
| - | $result = 0 | + | # Dumping session log to Azure log (standard output) when it exists |
| + | 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 | ||
| - | $result = 1 | + | exit 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> | ||