Index: tools/gn/builder.cc |
diff --git a/tools/gn/builder.cc b/tools/gn/builder.cc |
index a04d3ad9c141a57721070a6a1ad7b10565ee2f63..b8ef71ee7a34b4f4098081e665e1c6994a09156f 100644 |
--- a/tools/gn/builder.cc |
+++ b/tools/gn/builder.cc |
@@ -447,9 +447,10 @@ bool Builder::ResolveForwardDependentConfigs(Target* target, Err* err) { |
if (!configs[config_i].ptr) { |
*err = Err(target->defined_from(), |
"Target in forward_dependent_configs_from was not listed in the deps", |
- "The target \"" + configs[config_i].label.GetUserVisibleName(false) + |
- "\"\n was not present in the deps. This thing is used to forward\n" |
- "configs from direct dependents."); |
+ "This target has a forward_dependent_configs_from entry that was " |
+ "not present in\nthe deps. A target can only forward things it " |
+ "depends on. It was forwarding:\n " + |
+ configs[config_i].label.GetUserVisibleName(false)); |
return false; |
} |
} |