pg: notify about games and login

This commit is contained in:
Ralf Vogler 2023-01-25 18:54:23 +01:00
parent 95b703efb1
commit 13e6f05cd0
2 changed files with 23 additions and 7 deletions

View file

@ -194,7 +194,7 @@ try {
}
} catch (error) {
console.error(error); // .toString()?
if (!error.message.contains('Target closed')) // e.g. when killed by Ctrl-C
if (error.message && !error.message.contains('Target closed')) // e.g. when killed by Ctrl-C
notify(`epic-games failed: ${error.message}`);
} finally {
await db.write(); // write out json db