A little bit more details in the message

This commit is contained in:
Andrey Breslav
2012-05-31 19:28:27 +04:00
parent 6f28638e80
commit 896b2fa773
@@ -449,7 +449,7 @@ public class DependencyInjectorGenerator {
dependency = fields.iterator().next();
}
else {
throw new IllegalArgumentException("Ambiguous dependency: " + errorMessage);
throw new IllegalArgumentException("Ambiguous dependency: " + errorMessage + " needed for " + neededFor);
}
return dependency;
}