diff --git a/src/m2d/converters/emojis.txt b/src/m2d/converters/emojis.txt index 2ac8997..32c3f15 100644 --- a/src/m2d/converters/emojis.txt +++ b/src/m2d/converters/emojis.txt @@ -3796,4 +3796,4 @@ πŸ‡²πŸ‡« πŸ‡ΈπŸ‡― πŸ‡ΉπŸ‡¦ -πŸ‡ΊπŸ‡² +πŸ‡ΊπŸ‡² \ No newline at end of file diff --git a/src/m2d/event-dispatcher.js b/src/m2d/event-dispatcher.js index b948a17..8aa38cf 100644 --- a/src/m2d/event-dispatcher.js +++ b/src/m2d/event-dispatcher.js @@ -33,7 +33,9 @@ function guard(type, fn) { try { return await fn(event, ...args) } catch (e) { - console.error(`Exception while processing a ${type} Matrix event:`) + console.error("hit event-dispatcher's error handler with this exception:") + console.error(e) // TODO: also log errors into a file or into the database, maybe use a library for this? or just wing it? + console.error(`while handling this ${type} gateway event:`) console.dir(event, {depth: null}) if (Date.now() - lastReportedEvent < 5000) return