Deployment says success but there was a powershell script error

Why does the following powershell error not cause the step to “fail”?

2013-11-05 17:14:50 INFO Job successful. Tentacle output follows:
2013-11-05 17:15:01 INFO ERROR: Set-Location : Cannot process argument because the value of argument “path” is
2013-11-05 17:15:01 INFO ERROR: null. Change the value of argument “path” to a non-null value.
2013-11-05 17:15:01 INFO ERROR: At C:\Windows\system32\config\systemprofile\AppData\Local\Tentacle\Temp\857ee8e
2013-11-05 17:15:01 INFO ERROR: a-86e5-48da-9e40-f4a2d0b52fe6.ps1:1 char:1
2013-11-05 17:15:01 INFO ERROR: + Set-Location -Path $OctopusParameters[“OctopusPackageDirectoryPath”]
2013-11-05 17:15:01 INFO ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2013-11-05 17:15:01 INFO ERROR: + CategoryInfo : InvalidArgument: (:slight_smile: [Set-Location], PSArgumentN
2013-11-05 17:15:01 INFO ERROR: ullException
2013-11-05 17:15:01 INFO ERROR: + FullyQualifiedErrorId : ArgumentNull,Microsoft.PowerShell.Commands.SetLo
2013-11-05 17:15:01 INFO ERROR: cationCommand
2013-11-05 17:15:01 INFO ERROR:
2013-11-05 17:15:01 INFO ==============================================
2013-11-05 17:15:01 INFO PowerShell exit code: 0
2013-11-05 17:15:01 INFO ==============================================

I’ve remedied this issue by making sure to pipe to Write-Host as well as using a trap at the top of each of my powershell steps just in case.

trap { write-output $_; exit 1; }