GUI: reworked error dialog:

* added client version and improved stack trace;
* added copy to clipboard button;
* added button to create new issue on github (with prefilled form fields like error text);
* added GUI size settings support;
* some old errors now use new error dialog instead message box;
This commit is contained in:
Oleg Agafonov 2024-07-05 17:42:36 +04:00
parent 2631b31b8a
commit 6c0f7ebb90
11 changed files with 284 additions and 125 deletions

View file

@ -786,9 +786,9 @@ public class NewTableDialog extends MageDialog {
this.repaint();
}
private void handleError(Exception ex) {
logger.fatal("Error loading deck", ex);
MageFrame.getInstance().showErrorDialog("Error loading deck", ex.getMessage());
private void handleError(Exception e) {
logger.fatal("Can't join table due " + e, e);
MageFrame.getInstance().showErrorDialog("CLIENT - error on join table", e);
}
public void showDialog(UUID roomId) {