Add additional debug info.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-22 00:15:27 -03:00
parent 8907452bc5
commit de78c882cc

View File

@ -35,7 +35,11 @@ class EditorOptionsBuilder {
} }
static loadMapId(): number { static loadMapId(): number {
return !AppConfig.isDevelopEnv() ? global.mapId : 11; const result = !AppConfig.isDevelopEnv() ? global.mapId : 11;
if (result === undefined) {
throw Error(`Could not resolve mapId. Map Id: global.mapId: ${result} , global.mapTitle: ${global.mapTitle}, global.lockSession: ${global.lockSession}`);
}
return result;
} }
} }
export default EditorOptionsBuilder; export default EditorOptionsBuilder;