mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
electron-main: Provide a better error message if Seshat isn't installed.
Port https://github.com/vector-im/riot-web/pull/11691
This commit is contained in:
parent
b622cd8e35
commit
b7b9779b65
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
// Things we need throughout the file but need to be created
|
||||
|
Loading…
x
Reference in New Issue
Block a user