1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Increase shell sync timeout

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-07-01 13:10:55 +03:00
parent e0a509d462
commit 7f94a571a0

View File

@ -52,7 +52,7 @@ export async function shellEnv(shell?: string, forceRetry = false) : Promise<Env
shellEnvironment(shell), shellEnvironment(shell),
new Promise((_resolve, reject) => setTimeout(() => { new Promise((_resolve, reject) => setTimeout(() => {
reject(new Error("Resolving shell environment is taking very long. Please review your shell configuration.")); reject(new Error("Resolving shell environment is taking very long. Please review your shell configuration."));
}, 5_000)) }, 30_000))
]); ]);
} catch (error) { } catch (error) {
logger.error(`shellEnv: ${error}`); logger.error(`shellEnv: ${error}`);