Skip to content

Commit f0fc61d

Browse files
committed
Fail early if INItializableWindow's config INI is missing its primary window section
1 parent 9b6a17c commit f0fc61d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/TSMapEditor/UI/Controls/INItializableWindow.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public override void Initialize()
7575
}
7676

7777
Parser.Instance.SetPrimaryControl(this);
78-
ReadINIForControl(this);
78+
if (!ReadINIForControl(this))
79+
throw new INIConfigException("No section '" + Name + "' found when parsing config file for INItializableWindow of the type!");
80+
7981
ReadLateAttributesForControl(this);
8082

8183
base.Initialize();

0 commit comments

Comments
 (0)