Skip to content

Commit

Permalink
不能发送错误信息的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
herbix committed May 24, 2014
1 parent 27668e0 commit f995a09
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Github推荐我弄个README,我就弄了。
删除了本地化里面多余的语句<br>
添加了繁体中文版本<br>
修复了会出现ExceptionInInitializerError的问题<br>
加了启动时出错的提示,并发出出错报告<br>
加了启动时出错的提示,并发出错误报告<br>
错误报告添加了版本号<br>

未来版本
=============
Expand Down
Binary file modified build/SSASTLauncher.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions src/org/ssast/minecraft/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@

public class Launcher {

private static final String helpWords = "SSAST Launcher V1.6.7\n" + Lang.getString("msg.help");
private static final String VERSION = "1.6.6";
private static final String helpWords = "SSAST Launcher V" + VERSION + "\n" + Lang.getString("msg.help");

private LauncherFrame frame = null;

Expand Down Expand Up @@ -318,7 +319,7 @@ private static void exceptionReport(String str) {
conn.addRequestProperty("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
conn.addRequestProperty("Content-Length", String.valueOf(toSend.length));
conn.setDoOutput(true);
conn.setDoOutput(false);
conn.setDoInput(false);
conn.connect();

OutputStream os = conn.getOutputStream();
Expand Down Expand Up @@ -355,7 +356,7 @@ public void run() {
String str = out.toString();
JOptionPane.showMessageDialog(null, Lang.getString("msg.main.error") + str,
Lang.getString("msg.main.error.title"), JOptionPane.ERROR_MESSAGE);
exceptionReport(str);
exceptionReport("Version " + VERSION + ":\n" + str);
}
}
}
3 changes: 2 additions & 1 deletion update-log
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
ɾ���˱��ػ������������
�����˷������İ汾
�޸��˻����ExceptionInInitializerError������
��������ʱ��������ʾ����������������
��������ʱ��������ʾ�����������󱨸�
���󱨸������˰汾��

1.6.5
�ع���ServerAuth�������
Expand Down

0 comments on commit f995a09

Please sign in to comment.