Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2 from Vlatombe/JENKINS-28895
[JENKINS-28895] Display a user-friendly error message when the host n…
  • Loading branch information
Vlatombe committed Jun 20, 2015
2 parents f6cef6a + 4691102 commit 95b4f4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Expand Up @@ -361,6 +361,8 @@ public void onClosed(Channel channel, IOException cause) {
});
//destroy session to free the socket
JISession.destroySession(session);
} catch (UnknownHostException e) {
listener.error(Messages.ManagedWindowsServiceLauncher_UnknownHost(getTimestamp(), e.getMessage()));
} catch (SmbException e) {
e.printStackTrace(listener.error(e.getMessage()));
} catch (JIException e) {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/hudson/os/windows/Messages.properties
Expand Up @@ -26,6 +26,7 @@ ManagedWindowsServiceLauncher.DotNetRequired={0} [windows-slaves] .NET Framework
ManagedWindowsServiceLauncher.InstallingSlaveService={0} [windows-slaves] Installing the Jenkins slave service
ManagedWindowsServiceLauncher.ConnectingTo={0} [windows-slaves] Connecting to {1}
ManagedWindowsServiceLauncher.ConnectingToPort={0} [windows-slaves] Connecting to port {1}
ManagedWindowsServiceLauncher.UnknownHost={0} The host name {1} cannot be resolved. Please check that the host name is correct.
ManagedWindowsServiceLauncher.CopyingSlaveExe={0} [windows-slaves] Copying jenkins-slave.exe
ManagedWindowsServiceLauncher.CopyingSlaveXml={0} [windows-slaves] Copying jenkins-slave.xml
ManagedWindowsServiceLauncher.CopyingSlaveJar={0} [windows-slaves] Copying slave.jar
Expand Down
Expand Up @@ -26,6 +26,7 @@ ManagedWindowsServiceLauncher.DotNetRequired={0} [windows-slaves] Le Framework .
ManagedWindowsServiceLauncher.InstallingSlaveService={0} [windows-slaves] Installation du service esclave Windows
ManagedWindowsServiceLauncher.ConnectingTo={0} [windows-slaves] Connexion \u00e0 {1}
ManagedWindowsServiceLauncher.ConnectingToPort={0} [windows-slaves] Connexion au port {1}
ManagedWindowsServiceLauncher.UnknownHost={0} Le nom d''h\u00f4te {1} est inconnu du serveur de noms. Veuillez v\u00e9rifier que le nom de la machine est correct.
ManagedWindowsServiceLauncher.CopyingSlaveExe={0} [windows-slaves] Copie de jenkins-slave.exe
ManagedWindowsServiceLauncher.CopyingSlaveXml={0} [windows-slaves] Copie de jenkins-slave.xml
ManagedWindowsServiceLauncher.RegisteringService={0} [windows-slaves] Enregistrement du service
Expand Down

0 comments on commit 95b4f4a

Please sign in to comment.