mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix broken error message in beacon importer.
This commit is contained in:
parent
028576f208
commit
5621b4cbd4
@ -123,6 +123,9 @@ def beacons_from_terrain(dcs_path: Path, path: Path) -> Iterable[Beacon]:
|
|||||||
for beacon in beacons.values():
|
for beacon in beacons.values():
|
||||||
beacon_type_lua = beacon["type"]
|
beacon_type_lua = beacon["type"]
|
||||||
if beacon_type_lua not in beacon_types_map:
|
if beacon_type_lua not in beacon_types_map:
|
||||||
|
beacon_types_path = (
|
||||||
|
dcs_path / "MissionEditor/modules/me_beaconsInfo.lua"
|
||||||
|
)
|
||||||
raise KeyError(
|
raise KeyError(
|
||||||
f"Unknown beacon type {beacon_type_lua}. Check that all "
|
f"Unknown beacon type {beacon_type_lua}. Check that all "
|
||||||
f"beacon types in {beacon_types_path} are present in "
|
f"beacon types in {beacon_types_path} are present in "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user