Improve error reporting when EventIndex fails on a supported environment

This commit is contained in:
Germain Souquet 2021-03-24 11:51:39 +00:00
parent 78b1f6c0b1
commit 5104d7bed8
3 changed files with 21 additions and 1 deletions

View file

@ -31,6 +31,7 @@ class EventIndexPeg {
constructor() {
this.index = null;
this._supportIsInstalled = false;
this.error = null;
}
/**
@ -96,6 +97,7 @@ class EventIndexPeg {
await index.init();
} catch (e) {
console.log("EventIndex: Error initializing the event index", e);
this.error = e;
return false;
}