Skip to content

Conversation

HyperBrain
Copy link
Member

@HyperBrain HyperBrain commented Sep 21, 2017

What did you implement:

This PR adds an extra log line if the webpack config file could not be loaded.
This makes the reason for errors in the configuration more clear than just printing the
actual exception without context.

How did you implement it:

Added a try/catch around the require() of the configuration file.

How can we verify it:

Implement a syntax error in your webpack config. Any try to package or deploy should mention
to the configuration file now before printing the error message or stacktrace.

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@HyperBrain HyperBrain added this to the 3.1.0 milestone Sep 21, 2017
@HyperBrain HyperBrain mentioned this pull request Sep 21, 2017
@HyperBrain HyperBrain merged commit ff5ef0c into master Sep 21, 2017
@HyperBrain HyperBrain deleted the improve-error-config-load branch September 21, 2017 19:16
@HyperBrain
Copy link
Member Author

Released with 3.1.0

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.

1 participant