Skip to content

Commit

Permalink
fix: throw appropriate error in runCommand (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 2, 2022
1 parent 1f16407 commit 66e9bbc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/config.ts
Expand Up @@ -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`)
}

Expand Down

0 comments on commit 66e9bbc

Please sign in to comment.