1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-12-24 08:28:49 -05:00

Add connect error message to server info window

This commit is contained in:
Sebastian Kaspari 2010-03-14 11:58:46 +01:00
parent 0a0190c219
commit fa3584e596

View File

@ -96,11 +96,12 @@ public class IRCBinder extends Binder
} else if (e instanceof IrcException) { } else if (e instanceof IrcException) {
message = new Message("Could not log into the IRC server " + server.getHost()); message = new Message("Could not log into the IRC server " + server.getHost());
} else { } else {
message = new Message("Could not connect to IRC server " + server.getHost()); message = new Message("Could not connect to IRC server (" + e.getMessage() + ")");
} }
message.setColor(Message.COLOR_RED); message.setColor(Message.COLOR_RED);
message.setIcon(R.drawable.error); message.setIcon(R.drawable.error);
server.getConversation(ServerInfo.DEFAULT_NAME).addMessage(message);
Intent cIntent = new Intent(Broadcast.CONVERSATION_MESSAGE); Intent cIntent = new Intent(Broadcast.CONVERSATION_MESSAGE);
cIntent.putExtra(Broadcast.EXTRA_SERVER, server.getId()); cIntent.putExtra(Broadcast.EXTRA_SERVER, server.getId());