forked from External/mage
Merge pull request 'master' (#7) from External/mage:master into master
All checks were successful
/ example-docker-compose (push) Successful in 15m4s
All checks were successful
/ example-docker-compose (push) Successful in 15m4s
Reviewed-on: #7
This commit is contained in:
commit
a204b33f69
26 changed files with 253 additions and 58 deletions
|
|
@ -5,6 +5,8 @@ import mage.client.util.AppUtil;
|
|||
import mage.client.util.GUISizeHelper;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
/**
|
||||
* GUI: error dialog with copyable error message
|
||||
* // TODO: add game logs and data for game errors (client side info from GameView)
|
||||
|
|
@ -28,7 +30,10 @@ public class ErrorDialog extends MageDialog {
|
|||
|
||||
// add additional info
|
||||
String fullError = "Error type: " + fullTitle + "\n"
|
||||
+ "\n"
|
||||
+ "Client version: " + MageFrame.getInstance().getVersion().toString() + "\n"
|
||||
+ "Java version: " + System.getProperty("java.version") + "\n"
|
||||
+ "Default charset: " + Charset.defaultCharset() + "\n"
|
||||
+ "\n"
|
||||
+ errorText;
|
||||
this.textError.setText(fullError);
|
||||
|
|
@ -68,7 +73,8 @@ public class ErrorDialog extends MageDialog {
|
|||
AppUtil.openUrlInSystemBrowser(url);
|
||||
}
|
||||
|
||||
/** This method is called from within the constructor to
|
||||
/**
|
||||
* This method is called from within the constructor to
|
||||
* initialize the form.
|
||||
* WARNING: Do NOT modify this code. The content of this method is
|
||||
* always regenerated by the Form Editor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue