Bug 206919 - [terminal-ssh] When connecting to an unknown host, error message should be improved
Summary: [terminal-ssh] When connecting to an unknown host, error message should be im...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: Terminal (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 3.0.1   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: PII
Depends on:
Blocks:
 
Reported: 2007-10-19 12:48 EDT by Martin Oberhuber CLA
Modified: 2008-07-15 19:38 EDT (History)
0 users

See Also:


Attachments
Patch making the change (10.18 KB, patch)
2008-07-15 19:34 EDT, Martin Oberhuber CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-10-19 12:48:06 EDT
When an SSH terminal is connected to an unknown host, it prints in the Terminal:

java.net.UnknownHostException: blablablab

It should instead catch the exception and print a localizable String, like

Unknown host: blabhablab

the Termianl connector does this already.

-----------Enter bugs above this line-----------
installation : eclipse-SDK-3.3.1 (M20070921-1145), cdt-4.0.1, emf-2.3.1
RSE install  : Download RSE-2.0.1: RSE-SDK,tests,discovery,terminal,remotecdt
java.runtime : Sun 1.6.0_02-b06
os.name:     : Windows XP 5.1, Service Pack 1
------------------------------------------------
Comment 1 Martin Oberhuber CLA 2008-07-15 19:34:39 EDT
Created attachment 107546 [details]
Patch making the change

Attached patch makes the enhancement, borrowing code for translating Exceptions into readable text from the org.eclipse.team.cvs.core plugin.

It's currently fixed for SSH only (not for Telnet which likely sees similar exceptions), and it's not pretty to have the error handling code duplicated. But improvements can only be made in the next release since API would need to be touched.
Comment 2 Martin Oberhuber CLA 2008-07-15 19:35:24 EDT
Patch committed:
[206919] Improve SSH Terminal Error Reporting
Comment 3 Martin Oberhuber CLA 2008-07-15 19:38:12 EDT
CQ:WIND00109237