mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-02 04:11:30 +02:00
electron-main: Provide a better error message if Seshat isn't installed.
This closes #11637.
This commit is contained in:
parent
7f451d2635
commit
6ead268ef0
@ -47,7 +47,11 @@ let Seshat = null;
|
|||||||
try {
|
try {
|
||||||
Seshat = require('matrix-seshat');
|
Seshat = require('matrix-seshat');
|
||||||
} catch (e) {
|
} 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"]) {
|
if (argv["help"]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user