**[Kyle Anderson](https://jira.spring.io/secure/ViewProfile.jspa?name=kanderson)** opened **[SPR-16628](https://jira.spring.io/browse/SPR-16628?redirect=false)** and commented When a bean annotated with `@DependsOn` references a bean name that doesn't exist, a NoSuchBeanDefinitionException is thrown. **Example:** ``` org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myMissingBean' available ``` I think this exception can be improved to contain information pertaining to the bean that was annotated with `@DependsOn`. **Example:** ``` org.springframework.beans.factory.NoSuchBeanDefinitionException: 'com.example.MyBean' depends on a bean named 'myMissingBean' but it wasn't available ``` This would add a little extra clarity and traceability. --- **Affects:** 4.3.14, 5.0.4 **Reference URL:** https://github.com/spring-projects/spring-framework/pull/1751 **Backported to:** [4.3.15](https://github.com/spring-projects/spring-framework/milestone/164?closed=1)