mirror of
https://github.com/jdx/mise-action.git
synced 2026-07-03 01:59:29 +00:00
fix: suppress exit rejections after killing tar download
When a piped curl/wget-to-tar download fails, ignore close-handler rejections from the killed child processes so the original error surfaces cleanly.
This commit is contained in:
parent
102cca5db7
commit
4b978f5b3b
3 changed files with 5 additions and 1 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
|
@ -89652,6 +89652,8 @@ async function installFromTarUrl(url, tarArgs, miseBinPath) {
|
|||
catch (err) {
|
||||
downloader.kill();
|
||||
tar.kill();
|
||||
downloadExit.catch(() => { });
|
||||
tarExit.catch(() => { });
|
||||
throw err;
|
||||
}
|
||||
const extractedMisePath = path$1.join(tmpdir, 'mise', 'bin', 'mise');
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -528,6 +528,8 @@ async function installFromTarUrl(
|
|||
} catch (err) {
|
||||
downloader.kill()
|
||||
tar.kill()
|
||||
downloadExit.catch(() => {})
|
||||
tarExit.catch(() => {})
|
||||
throw err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue