Made dependency error messages accurate