A Gem::Exception subclass should be raised here, maybe PackageError?