mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
f087fd5a93
Prior to this commit, the exception message generated by instantiateFactory() in SpringFactoriesLoader did not report the offending class in the top-level exception message. The offending class was in fact included in the message of the nested exception, but the top-level exception message on its own was a bit misleading. This commit improves the diagnostics for such failures by including the offending class and the target factory type in the top-level exception message. Closes gh-22453