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

vague error message when required key is missing #421

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

azeem-r00t
Copy link
Contributor

If the config doesn't include one of the required keys, you get an error message as follows:

ERROR Missing or incomplete config for current environment 'development'

This update improves the error message to include the missing key in the error so the user can address it easily without having to go look into this source code.

The new error message is as following (when databaseURL is not included in the config):

ERROR Missing or incomplete config for current environment 'development': key 'databaseURL' is required!

If the config doesn't include one of the required keys, you get an error message as follows: 

`ERROR  Missing or incomplete config for current environment 'development'`

This update improves the error message to include the missing key in the error so the user can address it easily without having to go look into this source code. 

The new error message is as following (when databaseURL is not included in the config): 

`ERROR  Missing or incomplete config for current environment 'development': key 'databaseURL' is required! `
@lupas
Copy link
Member

lupas commented Dec 28, 2020

Thanks a lot, works as expected.

Appreciate the PR!

@lupas lupas merged commit 99f506b into nuxt-community:dev Dec 28, 2020
@lupas
Copy link
Member

lupas commented Dec 28, 2020

Released with v7.2.3

@azeem-r00t azeem-r00t deleted the patch-3 branch December 30, 2020 05:41
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