diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.ts index 8b3f6cd6ff..0ce55f6541 100644 --- a/src/renderer/src/util.ts +++ b/src/renderer/src/util.ts @@ -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) ?? '') );