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

fix: Do not log error message when config is missing #136

Merged
merged 3 commits into from
Nov 22, 2019
Merged

fix: Do not log error message when config is missing #136

merged 3 commits into from
Nov 22, 2019

Conversation

lucleray
Copy link
Contributor

The goal of this PR is to only log the following error messages when they need to be logged:
image

They happen when no config is specified (either in babel or via cosmoconfig). Most babel macros work perfectly well without config so this message is incorrect and the macro itself should throw if the config is missing.

Moreover, the error message states: Please see the error thrown for more information. but no error is thrown. I've written in this PR what I believe is the expected behavior.

Related:

@lucleray lucleray changed the title fix: Do not log error message when no config is added fix: Do not log error message when config is missing Nov 22, 2019
@kentcdodds kentcdodds merged commit a3c0e23 into kentcdodds:master Nov 22, 2019
@kentcdodds
Copy link
Owner

Thank you! I'll try to figure out the build issues.

@kentcdodds
Copy link
Owner

@all-contributors please add @lucleray for code

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @lucleray! 🎉

@kentcdodds
Copy link
Owner

🎉 This PR is included in version 2.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants