Skip to content

Conversation

gribnoysup
Copy link
Collaborator

This is not a full fix, just a quick workaround based on the reported stack trace. See https://mongodb.slack.com/archives/G2L10JAV7/p1647603276712129

@gribnoysup gribnoysup force-pushed the catch-possible-theme-update-errors branch from 0a22c94 to e8c6abe Compare March 18, 2022 15:54
Copy link
Member

@Anemy Anemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also try catch the loadTheme where we use remote.nativeTheme? I'm thinking that could be a place where the native theme error could come from to be safe.
https://github.com/mongodb-js/compass/blob/main/packages/compass/src/app/theme.js#L45

@gribnoysup
Copy link
Collaborator Author

gribnoysup commented Mar 18, 2022

Based on the trace and the error message it happens when we send the message to the window, I'm not sure it makes sense tbh and as this is a hacky workaround I'd try to limit the amount of places where we introduce those

@gribnoysup gribnoysup merged commit 4d4b604 into main Mar 18, 2022
@gribnoysup gribnoysup deleted the catch-possible-theme-update-errors branch March 18, 2022 16:51
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