Skip to content

Commit

Permalink
fix: wrong error message
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Aug 3, 2018
1 parent 125d06b commit c955083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function tryRequire<T = any>(packageName: string): T | void {
try {
mod = require(packageName);
} catch (err) {
if (err.code !== 'ENOENT') throw err; // tslint:disable-line
if (err.code !== 'MODULE_NOT_FOUND') throw err; // tslint:disable-line
}
return mod;
}

0 comments on commit c955083

Please sign in to comment.