Adding more details when logging dependencies errors.

It's not related to you PR, but I don't get this test...
`if (noCircularDependencies)` and then you log an error that __there is__ a dependency. Not really consistent to me