Skip to content

Commit b8346a0

Browse files
committed
fix: show output
1 parent c21fbba commit b8346a0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib/cmd.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export const cmd = async (cmd: string, config?: Partial<CmdConfig>) => {
3737
} catch (error) {
3838
const output = out_data.map((b) => b.toString()).join("\n");
3939
log.error(error?.message);
40+
if (output) {
41+
log.error(output);
42+
}
4043
throw new Error(`Command error: ${cmd}`);
4144
}
4245
};

0 commit comments

Comments
 (0)