diff --git a/packages/cli/lib/install.ts b/packages/cli/lib/install.ts index 4b31a67f..2f4a0707 100644 --- a/packages/cli/lib/install.ts +++ b/packages/cli/lib/install.ts @@ -1,4 +1,4 @@ -import { exec } from 'tinyexec'; +import { exec, NonZeroExitError } from 'tinyexec'; import { resolveCommand } from 'package-manager-detector'; import type { Adder, @@ -135,7 +135,8 @@ async function runAddon( throwOnError: true }); } catch (error) { - const typedError = error as Error; + const typedError = error as NonZeroExitError; + console.error(typedError); throw new Error( `Failed to execute scripts '${executedCommandDisplayName}': ` + typedError.message );