Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/local-actions/branch-manager/main.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions ng-dev/utils/child-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export interface CommonCmdOpts {

/** Interface describing the options for spawning a process synchronously. */
export interface SpawnSyncOptions
extends CommonCmdOpts,
Omit<_SpawnSyncOptions, 'shell' | 'stdio' | 'input'> {}
extends CommonCmdOpts, Omit<_SpawnSyncOptions, 'shell' | 'stdio' | 'input'> {}

/** Interface describing the options for spawning a process. */
export interface SpawnOptions extends CommonCmdOpts, Omit<_SpawnOptions, 'shell' | 'stdio'> {}
Expand Down Expand Up @@ -222,9 +221,8 @@ function processAsyncCmd(
// stderr due to a race condition around exiting.
childProcess.on('close', (exitCode, signal) => {
const exitDescription = exitCode !== null ? `exit code "${exitCode}"` : `signal "${signal}"`;
const printFn = options.mode === 'on-error' ? Log.error : Log.debug;
const status = statusFromExitCodeAndSignal(exitCode, signal);

const printFn = status !== 0 && options.mode === 'on-error' ? Log.error : Log.debug;
printFn(`Command "${command}" completed with ${exitDescription}.`);
printFn(`Process output: \n${logOutput}`);

Expand Down
Loading