diff --git a/src/config/config.ts b/src/config/config.ts index 874aaf92..bd11ecff 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -335,6 +335,10 @@ export class Config implements IConfig { return cmdResult as T } + if (hookResult.failures[0]) { + throw hookResult.failures[0].error + } + throw new CLIError(`command ${id} not found`) }