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

Show config error notfications after app is ready #5025

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

tpanning
Copy link
Contributor

@tpanning tpanning commented Nov 7, 2020

Fixes #1589 by waiting until the app is ready to show Notifications. When the config file has a syntax error, the app is not ready so a Notification can't be created yet. In this change, notify() checks to see if the app isReady() and, if it's not, creates the Notification after the 'ready' event is issued.

Now if the config file has a syntax error, the default configuration will be used and two notifications will be sent: line 19 of init.ts issues a notification with the syntax error, and line 36 of init.ts notifies that it couldn't find the 'config' key.

@Stanzilla Stanzilla merged commit a8803ec into vercel:canary Nov 9, 2020
@tpanning tpanning deleted the config-syntax-error-notification branch November 10, 2020 02:30
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.

Crashes on open with invalid config
2 participants