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

Errors on joinSession() are not correctly logged #35

Open
bojcicm opened this issue Oct 18, 2024 · 0 comments
Open

Errors on joinSession() are not correctly logged #35

bojcicm opened this issue Oct 18, 2024 · 0 comments

Comments

@bojcicm
Copy link

bojcicm commented Oct 18, 2024

If error occurs after line

yield e.joinSession()

In catch block it doesn't display error correctly.
On UI it will display message UIKit: [Object object]
No logs in console, couldn't figure out what was wrong.

In minified file I had to update catch logic after joinSession()
Instead of

catch(i) {
  e.error.throw("UIKit", i);
  e.isLoading = false;
}

I have changed it to

catch(i) {
  e.error.throw("UIKit", i.reason);
  console.error(i);
  e.isLoading = false;
}
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

No branches or pull requests

1 participant