Skip to content

Conversation

@guusdk
Copy link
Member

@guusdk guusdk commented Jan 6, 2026

This adds a reference to the room that was being joined, and adds a more descriptive cause of the failure.

This adds a reference to the room that was being joined, and adds a more descriptive cause of the failure.
String error = errors.get( 0 );
JOptionPane.showMessageDialog( SparkManager.getMainWindow(), error, Res.getString("message.error.unable.join.room"), JOptionPane.ERROR_MESSAGE );
final String style = "width: 300px;";
String body = "<html><body><p style='"+style+"'>"+ roomJID + ": " + Res.getString("message.error.unable.join.room") +"</p><p></p><p style='"+style+"'>" + error + "</p></body></html>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HTML is needed only to set a width to the message dialog. Maybe we can move it inside of the showMessageDialog()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also using it for the blank line between the paragraphs.

@guusdk guusdk merged commit 24c4fa5 into igniterealtime:master Jan 6, 2026
4 checks passed
@guusdk
Copy link
Member Author

guusdk commented Jan 6, 2026

Ah, I merged this with the wrong JIRA issue in the commit message. It's SPARK-2376 (not SPARK-2476).

@guusdk guusdk changed the title SPARK-2476: Improve error message when failing to join a chatroom SPARK-2376: Improve error message when failing to join a chatroom Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants