Improving some import-related error messages