From 2617030b6ebe2f1faca6ae635a5c170a9df698d8 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 20 Oct 2021 19:38:57 +0300 Subject: [PATCH 14/14] Tell which building was the problematic one in ruleset sanity checks See osdn #42995 Signed-off-by: Marko Lindqvist --- server/rssanity.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/rssanity.c b/server/rssanity.c index 8a91843985..3aed5d2a47 100644 --- a/server/rssanity.c +++ b/server/rssanity.c @@ -456,7 +456,8 @@ static bool rs_buildings(void) if (improvement_has_flag(pimprove, IF_GOLD) && pimprove->genus != IG_SPECIAL) { ruleset_error(LOG_ERROR, - "Gold producing improvement with genus other than \"Special\""); + "Gold producing improvement %s with genus other than \"Special\"", + improvement_rule_name(pimprove)); return FALSE; } -- 2.33.0