mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Increase maxBuffer size for execFileWithInput
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
01487ad307
commit
46eae048d4
@ -26,7 +26,9 @@ const execFileWithInputInjectable = getInjectable({
|
||||
let execution: ChildProcess;
|
||||
|
||||
try {
|
||||
execution = execFile(filePath, commandArguments);
|
||||
execution = execFile(filePath, commandArguments, {
|
||||
maxBuffer: 8 * 1024 * 1024 * 1024, // 8 MiB
|
||||
});
|
||||
} catch (e) {
|
||||
resolve({ callWasSuccessful: false, error: e });
|
||||
|
||||
@ -56,7 +58,7 @@ const execFileWithInputInjectable = getInjectable({
|
||||
if (!isNumber(code)) {
|
||||
resolve({
|
||||
callWasSuccessful: false,
|
||||
error: "Exited without exit code",
|
||||
error: `Exited via ${signal}`,
|
||||
});
|
||||
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user