nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
641 stars 99 forks source link

vague error message when required key is missing #421

Closed azeem-r00t closed 3 years ago

azeem-r00t commented 3 years ago

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 commented 3 years ago

Thanks a lot, works as expected.

Appreciate the PR!

lupas commented 3 years ago

Released with v7.2.3