Skip to content

Improve exception handling from commands#299

Merged
geofflamrock merged 1 commit intomainfrom
improve-exception-handling
Jun 25, 2025
Merged

Improve exception handling from commands#299
geofflamrock merged 1 commit intomainfrom
improve-exception-handling

Conversation

@geofflamrock
Copy link
Owner

@geofflamrock geofflamrock commented Jun 25, 2025

With the switch to System.CommandLine, the behaviour if there is an exception has changed slightly to log the exception and a stack trace, which isn't all that ideal.

Now we catch and log the exception directly without the stack trace. Also a small change to process execution, we used to always log an error but now only do so if logging at verbose level.

@geofflamrock geofflamrock added the internal Changes only affect the internal API label Jun 25, 2025
@geofflamrock geofflamrock force-pushed the improve-exception-handling branch from 7c03148 to 31310db Compare June 25, 2025 22:07
@geofflamrock geofflamrock merged commit c80240f into main Jun 25, 2025
17 checks passed
@geofflamrock geofflamrock deleted the improve-exception-handling branch June 25, 2025 22:13
@geofflamrock geofflamrock added chore Chore that should not be included in release notes minor Increment the minor version when merged and removed internal Changes only affect the internal API chore Chore that should not be included in release notes labels Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Increment the minor version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant