Skip to content

Don't gobble up error messages in behavior loader#302

Merged
pjaaskel merged 1 commit intocpc:mainfrom
gtkiku:osal-gobble
Feb 2, 2026
Merged

Don't gobble up error messages in behavior loader#302
pjaaskel merged 1 commit intocpc:mainfrom
gtkiku:osal-gobble

Conversation

@gtkiku
Copy link
Contributor

@gtkiku gtkiku commented Jan 30, 2026

Ran into some issues trying to debug failing tests, and found it very annoying that parts of the codebase catch an exception, only to replace it with another exception, discarding the original error message. This was the one I happened to run into, but it seems like the same behaviour occurs in some other places in the codebase as well.

Unsure if I should try to find other spots with the same annoying behaviour to fix in one go or if it's fine to fix them as they appear?

@gtkiku gtkiku requested a review from pjaaskel January 30, 2026 15:47
@pjaaskel
Copy link
Contributor

pjaaskel commented Feb 2, 2026

Let's fix them as needed and in those case consider does it make sense catching the exception in the middle or not. Here since the behavior definitions are part of the user experience, it's good to produce as clear error messages as possible.

@pjaaskel pjaaskel merged commit 052ba89 into cpc:main Feb 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants