[objectives.lua] improve clarity of error message (#8780)

This commit is contained in:
Tahsin Jahin Khalid 2024-08-03 22:24:41 +06:00 committed by GitHub
parent 657ed9419f
commit d467632398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ local function generate_objectives(cfg)
.. color_prefix(r, g, b) .. objective_bullet.. description
.. turn_counter .. "</span>" .. "\n"
else
wesnoth.interface.add_chat_message "Unknown condition, ignoring."
wml.error("[objective] Either condition= is missing or condition= has invalid value (ignoring).")
end
end
end