Skip to content

Commit db131ea

Browse files
committed
task log should print the error on its own
1 parent 39fe699 commit db131ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/utils/package-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function packageManagerPrompt(cwd: string): Promise<AgentName | und
4242
export async function installDependencies(agent: AgentName, cwd: string): Promise<void> {
4343
const task = p.taskLog({
4444
message: `Installing dependencies with ${agent}...`,
45-
limit: process.stdout.rows / 2
45+
limit: Math.ceil(process.stdout.rows / 2)
4646
});
4747

4848
try {
@@ -62,8 +62,8 @@ export async function installDependencies(agent: AgentName, cwd: string): Promis
6262
await proc;
6363

6464
task.success('Successfully installed dependencies');
65-
} catch (error) {
66-
task.error('Failed to install dependencies' + error);
65+
} catch {
66+
task.error('Failed to install dependencies');
6767
p.cancel('Operation failed.');
6868
process.exit(2);
6969
}

0 commit comments

Comments
 (0)