more improvements to dependency-related error messages