Skip to content

Commit

Permalink
add fallback value for status
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Apr 14, 2024
1 parent 8f471c3 commit a75d1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,11 @@ export function spawnMakensis(cmd: string, args: Array<string>, compilerOptions:
});

// Using 'exit' will truncate stdout
child.on('close', (code: number) => {
child.on('close', (code: number | null) => {
const streamFormatted = formatOutput(stream, args, compilerOptions);

const output: Makensis.CompilerOutput = {
status: code,
status: code || 0,
stdout: streamFormatted.stdout || null,
stderr: streamFormatted.stderr || null,
warnings: warningsCounter,
Expand Down

0 comments on commit a75d1f2

Please sign in to comment.