diff --git a/Classes/InterfacesConfig.as b/Classes/InterfacesConfig.as index 24a5855..c0da5b6 100644 --- a/Classes/InterfacesConfig.as +++ b/Classes/InterfacesConfig.as @@ -23,7 +23,7 @@ class InterfacesConfig { Layers.InsertLast(LayerConfig); } catch { - warn("Can't load layer \""+ i +"\" of Interface Config: \""+ Name +"\""); + warn("Can't load layer \""+ i +"\" of Interface Config: \""+ Name +"\"\nException Message: " + getExceptionInfo()); } } } diff --git a/Classes/LayerConfig.as b/Classes/LayerConfig.as index 0d9215f..1a8d8d3 100644 --- a/Classes/LayerConfig.as +++ b/Classes/LayerConfig.as @@ -13,6 +13,10 @@ class LayerConfig { const string Manialink = GetManialink(); Name = InterfacesManager::GetLayerName(Manialink); + if (Name.Length == 0) { + throw('Can\'t find Manialink name'); + } + if (_Data.HasKey('LayerType') && _Data['LayerType'].GetType() == Json::Type::String) { LayerType = CastEUILayerType(_Data['LayerType']); } @@ -24,7 +28,7 @@ class LayerConfig { string GetManialink() const { if (!IO::FileExists(Path)) { - throw('Invalid Layer: Can\'t find "' + Path + '"'); + throw('File doesn\'t exists: "'+ Path +'"'); } IO::File File(Path, IO::FileMode::Read); diff --git a/InterfacesManager.as b/InterfacesManager.as index 599285b..4e0d01e 100644 --- a/InterfacesManager.as +++ b/InterfacesManager.as @@ -46,7 +46,7 @@ namespace InterfacesManager { const InterfacesConfig Config(Path, FileContent); G_Configs[Id] = Config; } catch { - warn('Invalid Interface Config: "' + Path + '" is an invalid json'); + warn('Invalid Interface Config: "'+ Path +'" is an invalid\nException Message: '+ getExceptionInfo()); } }