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

[legacy-framework] display an error if loading a module fails in blitz console #2792

Merged
merged 2 commits into from
Oct 4, 2021

Conversation

g3offrey
Copy link

@g3offrey g3offrey commented Oct 3, 2021

Closes: blitz-js/legacy-framework#295

What are the changes and their implications?

I decided to simply log the error that appears at the loading of the module.
I initially thought about a verbose mode, but I finally think this error should always be displayed.
If expert users need more details they can still enable additional logging using the DEBUG env var.

I'll check if there is some documentation about the DEBUG scopes, if not I'll be glad to create it.

Edit : I created it here : blitz-js/blitzjs.com#560

Bug Checklist

  • Integration test added (see test docs if needed)

Feature Checklist

@beerose beerose changed the title display the error if module loading fail in console display an error if loading a module fails in blitz console Oct 4, 2021
Copy link
Contributor

@beerose beerose left a comment

Choose a reason for hiding this comment

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

Thanks for your PR!

@beerose beerose merged commit 62dc284 into blitz-js:canary Oct 4, 2021
@blitzjs-bot
Copy link
Contributor

Added @g3offrey contributions for code

g3offrey added a commit to g3offrey/blitz that referenced this pull request Oct 5, 2021
@itsdillon itsdillon changed the title display an error if loading a module fails in blitz console [legacy-framework] display an error if loading a module fails in blitz console Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading a mutation via blitz console fails silently due to a missing ENV var
3 participants