Skip to content

Commit

Permalink
[preserve-symlinks] log about signals and errors, use valid code (#13…
Browse files Browse the repository at this point in the history
…1880) (#131995)

(cherry picked from commit 2e902ff)

Co-authored-by: Spencer <[email protected]>
  • Loading branch information
kibanamachine and Spencer authored May 11, 2022
1 parent a658673 commit 0dfa7ef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/setup_node_env/ensure_node_preserve_symlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,18 @@
}

if (spawnResult.signal !== null) {
return 128 + spawnResult.signal;
console.log(
'ensure_node_preserve_symlinks wrapper: process exitted with signal',
spawnResult.signal
);
return 1;
}

if (spawnResult.error) {
console.log(
'ensure_node_preserve_symlinks wrapper: process exitted with error',
spawnResult.error
);
return 1;
}

Expand Down

0 comments on commit 0dfa7ef

Please sign in to comment.