Skip to content

Commit

Permalink
temp log
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Nov 12, 2024
1 parent 0e92311 commit 64afeb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/lib/install.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { exec } from 'tinyexec';
import { exec, NonZeroExitError } from 'tinyexec';
import { resolveCommand } from 'package-manager-detector';
import type {
Adder,
Expand Down Expand Up @@ -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
);
Expand Down

0 comments on commit 64afeb5

Please sign in to comment.