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

Add log message before second attempt

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-01 12:53:52 -04:00
parent 7b8f013a2d
commit ff12ba3d0f

View File

@ -265,6 +265,7 @@ export class WindowManager extends Singleton {
await this.splashWindow.loadFile(splashWindowFilePath);
} catch (error) {
if (String(error).includes("ERR_FAILED")) {
logger.warn("[WINDOW-MANAGER]: failed to load splash window on first attempt, trying again...");
// Try again, from reading some issues it seems that trying again immedeiately sometimes works
await this.splashWindow.loadFile(splashWindowFilePath);
} else {