Bail and log why if door 'io' config is bad

This commit is contained in:
Bryan Ashby
2022-09-08 21:31:01 -06:00
parent 62bcb8055a
commit 2a0ae05c45
2 changed files with 7 additions and 1 deletions

View File

@@ -196,7 +196,11 @@ exports.getModule = class AbracadabraModule extends MenuModule {
const doorTracking = trackDoorRunBegin(this.client, this.config.name);
this.doorInstance.run(exeInfo, () => {
this.doorInstance.run(exeInfo, err => {
if (err) {
Log.error(`Error running "${this.config.name}": ${err.message}`);
}
trackDoorRunEnd(doorTracking);
this.decrementActiveDoorNodeInstances();