diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-04 23:11:50 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-04 23:11:50 -0700 |
commit | 3d614690cd825ac5580074ecdc22f660455204f1 (patch) | |
tree | 93ace95120a7f1b8e127c7e02ebae5ed05a3a8d5 /extension | |
parent | 67ed7e33543896147b03b28f50bfbd3fac65b030 (diff) | |
download | sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.gz sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.bz2 sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.zip |
fix: :bug: ebusy and logging bug fixes
Diffstat (limited to 'extension')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 32dfa52f..d41cb289 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -237,9 +237,11 @@ export async function startContinuePythonServer() { }); child.on("error", (err: any) => { - if (err.code === "EBUSY" && attempts < maxAttempts) { + if (attempts < maxAttempts) { attempts++; - console.log(`EBUSY error caught. Retrying attempt ${attempts}...`); + console.log( + `Error caught (likely EBUSY). Retrying attempt ${attempts}...` + ); setTimeout(spawnChild, delay); } else { console.error("Failed to start subprocess.", err); |