From ed6ee7af4f9272c667e30c68a93736430ffc319e Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sun, 29 Nov 2020 11:20:36 -0600 Subject: [PATCH] More logging --- electron/Index.vue | 1 + electron/main.ts | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/electron/Index.vue b/electron/Index.vue index ce250c4..bbc2382 100644 --- a/electron/Index.vue +++ b/electron/Index.vue @@ -369,6 +369,7 @@ this.defaultCharacter = data.default_character; } catch(e) { this.error = l('login.error'); + log.error('connect.error', e); if(process.env.NODE_ENV !== 'production') throw e; } finally { this.loggingIn = false; diff --git a/electron/main.ts b/electron/main.ts index 27f3714..500cc1f 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -280,7 +280,12 @@ function createWindow(): Electron.BrowserWindow | undefined { log.debug('adblock.inject.style', { length: style.length, url }); }); } - ); + ).catch( + (err) => { + log.warn('adblock.init.error', 'Adblocker failed to initialize.' + + 'This does not break F-Chat Rising, but may produce slower image previews', err); + } + ); // This prevents automatic download prompts on certain webview URLs without