Lombiq/Infrastructure-Scripts

Display exception details when commands fail (INFRA-140)

Opened this issue · 0 comments

Currently, commands have a pattern of catching exceptions, displaying an error message, then rethrowing the exception. See e.g. here or here.

When executed from a PS script, this results in outputs like this:

image

You see the error message, but no details.

I'd be better to also display the exception details in each of these cases, so you have a better chance of debugging the issue.

Jira issue