Import errors are suppressed during scanning, but other errors aren't.