Should have a better error message when [unit]type=
in ActionWML names an unknown type
#8847
Labels
Enhancement
Issues that are requests for new features or changes to existing ones.
WML
Issues involving the WML engine or WML APIs.
Describe the desired feature
In 1.18.0+dev 545ba26, trying to create a
[unit]
with an unknown type from ActionWML gives an uninformative error message, to both stdout and the in-game chat:In 1.16 it still gave a Lua error, but named the unit type (to both stdout and the in-game chat):
The information is available to 1.18, because the exception is thrown from src/units/unit.cpp:223:
but it ends up here at src/scripting/lua_common.cpp:1171:
The text was updated successfully, but these errors were encountered: