Adding more details when logging dependencies errors.