fix out of disk space not working

exit code is no longer 1
pull/2298/head
Mikael Finstad 10 months ago
parent 890caac0b7
commit 07723211b3
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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" ( ͡° ͜ʖ ͡°) // A bit hacky but it works, unless someone has a file called "No space left on device" ( ͡° ͜ʖ ͡°)
export const isOutOfSpaceError = (err: InvariantExecaError) => ( export const isOutOfSpaceError = (err: InvariantExecaError) => (
err.exitCode === 1 err.exitCode !== 0
&& !!getStdioString(err.stderr)?.includes('No space left on device') && !!getStdioString(err.stderr)?.includes('No space left on device')
); );
export const isMuxNotSupported = (err: InvariantExecaError) => ( export const isMuxNotSupported = (err: InvariantExecaError) => (
err.exitCode === 1 err.exitCode !== 0
&& err.stderr != null && err.stderr != null
&& /Could not write header .*incorrect codec parameters .*Invalid argument/.test(getStdioString(err.stderr) ?? '') && /Could not write header .*incorrect codec parameters .*Invalid argument/.test(getStdioString(err.stderr) ?? '')
); );

Loading…
Cancel
Save