Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent errors when using the defer() function #319

Open
Res260 opened this issue Jul 3, 2021 · 1 comment
Open

Silent errors when using the defer() function #319

Res260 opened this issue Jul 3, 2021 · 1 comment
Labels
investigate Needs more thought / experience

Comments

@Res260
Copy link
Collaborator

Res260 commented Jul 3, 2021

The defer() function "swallows" errors of the coroutine called in it, so the error is never displayed to the user. I'm working on something else and I don't know how to easily fix this, so I opened this issue to keep track of the problem.

@obilodeau obilodeau added the investigate Needs more thought / experience label Aug 24, 2021
@obilodeau
Copy link
Member

I got some silent errors today. Not sure if this is related but it caused me to lose a bunch of time tracking it down.

I made an error in a logger statement (not using the correct variable) at the MITM layer. In a handlePDU function. I wouldn't see my logs but things looked like they worked except I wouldn't get my logs. When I debugged I immediately got a stack trace from within that function that was pretty clear.

Is this the kind of behavior you are talking about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Needs more thought / experience
Projects
None yet
Development

No branches or pull requests

2 participants