Skip to content

Commit

Permalink
fix(execa): leave the error to the user for handling
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jun 12, 2023
1 parent 3fa5805 commit d38337f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ export async function execa(cmd: string[], options: Deno.CommandOptions = {}) {
resolved = true
}
})
const { success, code } = await process.status
resolved = true
ensureCleanEvents()
if (!success) {
Deno.exit(code)
}
return process.status.finally(() => {
resolved = true
ensureCleanEvents()
})
}

export function execaInstall(
Expand Down

0 comments on commit d38337f

Please sign in to comment.