Skip to content

Bug: After Effects Red Giant host config contains throw statements that obfuscates errors #243

Description

@yuanmich2

Describe the bug

If you write a throw statement into a host config script like this:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions