Browse Source

electron-main: Provide a better error message if Seshat isn't installed.

This closes #11637.
pull/11691/head
Damir Jelić 3 years ago
parent
commit
6ead268ef0
  1. 6
      electron_app/src/electron-main.js

6
electron_app/src/electron-main.js

@ -47,7 +47,11 @@ let Seshat = null;
try {
Seshat = require('matrix-seshat');
} catch (e) {
console.warn("seshat unavailable", e);
if (e.code === "MODULE_NOT_FOUND") {
console.log("Seshat isn't installed, event indexing is disabled.");
} else {
console.warn("Seshat unexpected error:", e);
}
}
if (argv["help"]) {

Loading…
Cancel
Save