forked from External/mage
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:
parent
2631b31b8a
commit
6c0f7ebb90
11 changed files with 284 additions and 125 deletions
|
|
@ -1648,12 +1648,12 @@ public class SessionImpl implements Session {
|
|||
|
||||
private void handleMageException(MageException ex) {
|
||||
logger.fatal("Server error", ex);
|
||||
client.showError(ex.getMessage());
|
||||
client.showError("Server error: " + ex.getMessage());
|
||||
}
|
||||
|
||||
private void handleGameException(GameException ex) {
|
||||
logger.warn(ex.getMessage());
|
||||
client.showError(ex.getMessage());
|
||||
client.showError("Game error: " + ex.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue