From b20aa641101d9932534ee21e6acd1cdf35cdb850 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Wed, 10 Feb 2021 18:16:34 +0100 Subject: [PATCH] Mention what action has a problem. Specify what action has a problem in the error message of enabler_tile_tgt_local_diplrel_implies_claimed(). The message isn't only encountered in ruledit where it is clear what enabler has a problem. See osnd #41549 --- common/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/actions.c b/common/actions.c index 702b8053cd..2947475c8c 100644 --- a/common/actions.c +++ b/common/actions.c @@ -2343,9 +2343,9 @@ enabler_tile_tgt_local_diplrel_implies_claimed( * the target but doesn't require that the target tile is claimed. * (DiplRel requirements to an unclaimed tile are never fulfilled * so this is implicit.) */ - N_("Requirement {%s} implies a claimed " + N_("Requirement {%s} of action \"%s\" implies a claimed " "tile. No diplomatic relation to Nature."), - req_to_fstring(local_diplrel)); + req_to_fstring(local_diplrel), action_rule_name(paction)); /* The solution is to add the requirement that the tile is claimed */ out->suggested_solutions[0].req = tile_is_claimed; -- 2.20.1