Skip to content

Commit ba4be4b

Browse files
authored
fix: don't warn on hook errors (#246)
* fix: don't warn on hook errors * fix: unref hook timeout
1 parent 7b74755 commit ba4be4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/config/config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class Config implements IConfig {
216216
const timeout = new Promise((_, reject) => {
217217
id = setTimeout(() => {
218218
reject(new Error(`Timed out after ${ms} ms.`))
219-
}, ms)
219+
}, ms).unref()
220220
})
221221

222222
return Promise.race([promise, timeout]).then(result => {
@@ -265,7 +265,6 @@ export class Config implements IConfig {
265265
} catch (error) {
266266
failures.push({plugin: p, error: error as Error})
267267
if (error && error.oclif && error.oclif.exit !== undefined) throw error
268-
this.warn(error, `runHook ${event}`)
269268
}
270269
}
271270
}

0 commit comments

Comments
 (0)