Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: raise errors if must is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent 91f31ad commit a662a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class Plugin implements IPlugin {
try {
m = require(p)
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') return
if (!opts.must && err.code === 'MODULE_NOT_FOUND') return
throw err
}
const cmd = search(m)
Expand Down

0 comments on commit a662a73

Please sign in to comment.