fix #1561: error during loading configs after reset

This commit is contained in:
antelle 2020-11-19 11:12:36 +01:00
parent 49d46cfedc
commit ffb68b1651
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 8 additions and 2 deletions

View File

@ -201,9 +201,13 @@ app.httpRequest = httpRequest;
function logProgress(name) {
perfTimestamps?.push({ name, ts: process.hrtime() });
logStartupMessage(name);
}
function logStartupMessage(msg) {
if (startupLogging) {
// eslint-disable-next-line no-console
console.log('[startup]', name);
console.log('[startup]', msg);
}
}
@ -792,7 +796,8 @@ function loadConfig(name) {
resolve(data.toString('utf8'));
} catch (err) {
reject(`Error reading config data ${name}: ${err}`);
logStartupMessage(`Error reading config data (config ignored) ${name}: ${err}`);
resolve(null);
}
});
});

View File

@ -4,6 +4,7 @@ Release notes
`-` fixed a performance issue in searching entries
`*` improved the "Show all file" checkbox behavior
`+` shortcut to copy OTP
`-` fix #1561: error during loading configs after reset
##### v1.15.7 (2020-09-12)
`-` fix #1564: broken auto-type on some Linux installations