mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-23 16:08:48 -05:00
Add connect error message to server info window
This commit is contained in:
parent
0a0190c219
commit
fa3584e596
@ -96,11 +96,12 @@ public class IRCBinder extends Binder
|
||||
} else if (e instanceof IrcException) {
|
||||
message = new Message("Could not log into the IRC server " + server.getHost());
|
||||
} 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.setIcon(R.drawable.error);
|
||||
server.getConversation(ServerInfo.DEFAULT_NAME).addMessage(message);
|
||||
|
||||
Intent cIntent = new Intent(Broadcast.CONVERSATION_MESSAGE);
|
||||
cIntent.putExtra(Broadcast.EXTRA_SERVER, server.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user