From 93a9ba4441b82b1c16e4e1e3db94648786295924 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/actions.c b/common/actions.c index 83e9bba27a..5d6e060dfc 100644 --- a/common/actions.c +++ b/common/actions.c @@ -2810,9 +2810,9 @@ enabler_first_clarification(const struct action_enabler *enabler) * 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_("Possible clarification: Requirement {%s} implies a claimed " - "tile. No diplomatic relation to Nature."), - req_to_fstring(local_diplrel)); + N_("Possible clarification: Requirement {%s} of action \"%s\" " + "implies a claimed tile. No diplomatic relation to Nature."), + 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