Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 271681 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/equinox/internal/p2/repository/RepositoryStatus.java (-1 / +1 lines)
Lines 117-123 Link Here
117
		if (t instanceof ConnectException)
117
		if (t instanceof ConnectException)
118
			return new DownloadStatus(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_FAILED_READ, NLS.bind(Messages.TransportErrorTranslator_UnableToConnectToRepository_0, toDownload), t);
118
			return new DownloadStatus(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_FAILED_READ, NLS.bind(Messages.TransportErrorTranslator_UnableToConnectToRepository_0, toDownload), t);
119
		if (t instanceof UnknownHostException)
119
		if (t instanceof UnknownHostException)
120
			return new DownloadStatus(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_INVALID_LOCATION, NLS.bind(Messages.TransportErrorTranslator_UnknownHost, toDownload), t);
120
			return new DownloadStatus(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_INVALID_LOCATION, NLS.bind(Messages.TransportErrorTranslator_UnknownHost, toDownload.getHost()), t);
121
		if (t instanceof IDCreateException) {
121
		if (t instanceof IDCreateException) {
122
			IStatus status = ((IDCreateException) t).getStatus();
122
			IStatus status = ((IDCreateException) t).getStatus();
123
			if (status != null && status.getException() != null)
123
			if (status != null && status.getException() != null)
(-)src/org/eclipse/equinox/internal/provisional/spi/p2/artifact/repository/SimpleArtifactRepositoryFactory.java (-2 / +5 lines)
Lines 67-74 Link Here
67
						// retry uncompressed
67
						// retry uncompressed
68
						compress = false;
68
						compress = false;
69
						status = getTransport().download(SimpleArtifactRepository.getActualLocation(location, compress), artifacts, sub.newChild(100));
69
						status = getTransport().download(SimpleArtifactRepository.getActualLocation(location, compress), artifacts, sub.newChild(100));
70
						if (!status.isOK())
70
						if (!status.isOK()) {
71
							throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, status.getMessage(), null));
71
							if (status.getException() instanceof FileNotFoundException)
72
								throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, status.getMessage(), null));
73
							throw new ProvisionException(status);
74
						}
72
					}
75
					}
73
				} finally {
76
				} finally {
74
					if (artifacts != null)
77
					if (artifacts != null)
(-)src/org/eclipse/equinox/internal/p2/artifact/repository/CompositeArtifactRepositoryFactory.java (-2 / +5 lines)
Lines 66-73 Link Here
66
						// retry uncompressed
66
						// retry uncompressed
67
						compress = false;
67
						compress = false;
68
						status = getTransport().download(CompositeArtifactRepository.getActualLocation(location, compress), artifacts, sub.newChild(100));
68
						status = getTransport().download(CompositeArtifactRepository.getActualLocation(location, compress), artifacts, sub.newChild(100));
69
						if (!status.isOK())
69
						if (!status.isOK()) {
70
							throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, status.getMessage(), null));
70
							if (status.getException() instanceof FileNotFoundException)
71
								throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_NOT_FOUND, status.getMessage(), null));
72
							throw new ProvisionException(status);
73
						}
71
					}
74
					}
72
				} finally {
75
				} finally {
73
					if (artifacts != null)
76
					if (artifacts != null)

Return to bug 271681