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

Fixes wrong error message when a module exists but fails loading #763

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

huafu
Copy link
Collaborator

@huafu huafu commented Sep 26, 2018

The importer is responsible of importing and patching modules with configurable fallbacks. If one is missing, it goes to the next one. Previously if a module existed but was failing when loading it with require, it'd report as missing instead of failing. Now it bubbles the error correctly.

The importer is responsible of importing and patching modules with
configurable fallbacks. If one is missing, it goes to the next one.
Previously if a module existed but was failing when loading it with
`require`, it'd report as missing instead of failing. Now it bubbles the
error correctly.
@huafu huafu added the hotfix label Sep 26, 2018
@huafu huafu added this to the 23.10.2 milestone Sep 26, 2018
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1904

  • 37 of 39 (94.87%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 91.461%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/config/config-set.ts 0 1 0.0%
src/util/importer.ts 36 37 97.3%
Totals Coverage Status
Change from base Build 1901: 0.2%
Covered Lines: 1023
Relevant Lines: 1070

💛 - Coveralls

Copy link
Collaborator

@GeeWee GeeWee left a comment

Choose a reason for hiding this comment

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

lgtm

@huafu huafu merged commit 9db3337 into kulshekhar:master Sep 26, 2018
@huafu huafu deleted the wrong-error-if-import-fails branch September 26, 2018 08:32
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.

None yet

3 participants