Skip to content

Commit

Permalink
fix: better print errors during plugins update hook (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelX360 committed Jun 17, 2020
1 parent be25021 commit fcaffd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ import Plugins from '../plugins'

export const update: Hook<'update'> = async function () {
const plugins = new Plugins(this.config)
await plugins.update()
try {
await plugins.update()
} catch (error) {
this.error(error.message)
}
}

0 comments on commit fcaffd9

Please sign in to comment.