Error not warning if package cannot be found