More logging
This commit is contained in:
parent
84db52346c
commit
ed6ee7af4f
|
@ -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;
|
||||
|
|
|
@ -280,6 +280,11 @@ 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);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue