} catch (GroupNotFoundException e) {
handleGroupNotFoundException(e);
} catch (AttachmentInvalidException e) {
- System.err.println("Failed to add attachment (\"" + e.getAttachment() + "\"): " + e.getMessage());
+ System.err.println("Failed to add attachment: " + e.getMessage());
System.err.println("Aborting sending.");
System.exit(1);
}
} catch (IOException e) {
handleIOException(e);
} catch (AttachmentInvalidException e) {
- System.err.println("Failed to add avatar attachment (\"" + e.getAttachment() + ") for group\": " + e.getMessage());
+ System.err.println("Failed to add avatar attachment for group\": " + e.getMessage());
System.err.println("Aborting sending.");
System.exit(1);
} catch (GroupNotFoundException e) {
busType = DBusConnection.SESSION;
}
conn = DBusConnection.getConnection(busType);
- conn.requestBusName(TEXTSECURE_BUSNAME);
conn.exportObject(TEXTSECURE_OBJECTPATH, m);
+ conn.requestBusName(TEXTSECURE_BUSNAME);
} catch (DBusException e) {
e.printStackTrace();
System.exit(3);
}
private static void handleGroupNotFoundException(GroupNotFoundException e) {
- System.err.println("Failed to send to group \"" + Base64.encodeBytes(e.getGroupId()) + "\": Unknown group");
+ System.err.println("Failed to send to group: " + e.getMessage());
System.err.println("Aborting sending.");
System.exit(1);
}