Skip to content

Commit

Permalink
fix out of disk space not working
Browse files Browse the repository at this point in the history
exit code is no longer 1
  • Loading branch information
mifi committed Dec 18, 2024
1 parent 890caac commit 0772321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ export const getStdioString = (stdio: string | Uint8Array) => (stdio instanceof

// A bit hacky but it works, unless someone has a file called "No space left on device" ( ͡° ͜ʖ ͡°)
export const isOutOfSpaceError = (err: InvariantExecaError) => (
err.exitCode === 1
err.exitCode !== 0
&& !!getStdioString(err.stderr)?.includes('No space left on device')
);

export const isMuxNotSupported = (err: InvariantExecaError) => (
err.exitCode === 1
err.exitCode !== 0
&& err.stderr != null
&& /Could not write header .*incorrect codec parameters .*Invalid argument/.test(getStdioString(err.stderr) ?? '')
);
Expand Down

0 comments on commit 0772321

Please sign in to comment.