Add log message before second attempt

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-01 12:53:52 -04:00
1 parent 7b8f013a2d
commit ff12ba3d0f
1 file changed
+1
+1
View File
@@ -265,6 +265,7 @@ export class WindowManager extends Singleton {
await this.splashWindow.loadFile(splashWindowFilePath); await this.splashWindow.loadFile(splashWindowFilePath);
} catch (error) { } catch (error) {
if (String(error).includes("ERR_FAILED")) { 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 // Try again, from reading some issues it seems that trying again immedeiately sometimes works
await this.splashWindow.loadFile(splashWindowFilePath); await this.splashWindow.loadFile(splashWindowFilePath);
} else { } else {