mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 22:35:43 +02:00
[cleanup] Improve user message for network IO problem
This commit is contained in:
parent
ab71d81cc9
commit
f3f1e1f73c
1 changed files with 7 additions and 0 deletions
|
@ -55,6 +55,13 @@ public class SystemNetworkIOException extends SystemRemoteMessageException {
|
|||
String message = remoteException.getMessage();
|
||||
if (message == null) {
|
||||
message = remoteException.getClass().getName();
|
||||
} else {
|
||||
// TODO Most remote messages like IOException don't have a message
|
||||
// that's understandable without the class type. For full translated
|
||||
// messages, code like in the Eclipse Team/CVS provider would need
|
||||
// to translate into readable messages. See also
|
||||
// o.e.tm.terminal.ssh/SshMessages#getMessageFor(Throwable).
|
||||
message = remoteException.getClass().getName() + ": " + message; //$NON-NLS-1$
|
||||
}
|
||||
String msgTxt = NLS.bind(CommonMessages.MSG_COMM_NETWORK_ERROR, message);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue