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

Commit

Permalink
fix: fixed error propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent ddbcf95 commit 2cbeaf9
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 @@ -202,7 +202,7 @@ export class Plugin implements IPlugin {

await search(require(p)).call(context, opts)
} catch (err) {
if (err && err['cli-ux'] && err['cli-ux']) throw err
if (err && err.anycli && err.anycli.exit !== undefined) throw err
this.warn(err, `runHook ${event}`)
}
})
Expand Down

0 comments on commit 2cbeaf9

Please sign in to comment.