Skip to content

Commit

Permalink
fix: error output
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Aug 16, 2024
1 parent de9e9a3 commit 9302394
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/dry-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ export const dryRun = async (pieces: TemplateStringsArray, ...args: any[]) => {
})
return
}
return $(pieces, ...args)

try {
return await $(pieces, ...args)
} catch (p) {
console.log(`Exit code: ${p.exitCode}`)
console.log(p.stderr)
}
}

function substitute(arg) {
Expand Down

0 comments on commit 9302394

Please sign in to comment.