Describe the bug
If you write a throw statement into a host config script like this:
It'll print out a generic "Powershell exited with 1" message. This makes it very hard to tell what actually broke.
Expected Behaviour
We should let scripts fail normally or print better error messages.
Current Behaviour
The AE+Red Giant host config script uses throw statements which will make it harder to debug than if you just let the script crash normally or if you used Write-Host statements instead.
Reproduction Steps
Put this script into a windows fleet host config:
Write-Host ' Start of Host Config Script '
Write-Host ' I am about to intentionally throw an error '
this line isn't a valid powershell command. It's just a regular sentence.
Write-Host ' This line should never be run since it comes after the error '
Environment
Windows SMF + the After Effects + Red Giant persistent storage host config script.
Describe the bug
If you write a throw statement into a host config script like this:
It'll print out a generic "Powershell exited with 1" message. This makes it very hard to tell what actually broke.
Expected Behaviour
We should let scripts fail normally or print better error messages.
Current Behaviour
The AE+Red Giant host config script uses throw statements which will make it harder to debug than if you just let the script crash normally or if you used Write-Host statements instead.
Reproduction Steps
Put this script into a windows fleet host config:
Environment
Windows SMF + the After Effects + Red Giant persistent storage host config script.