Browse Source

Distinguish unhandled error type

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
tags/3.3.4
Syrone Wong 8 years ago
parent
commit
74ad98d9ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      shadowsocks-csharp/Program.cs

+ 2
- 2
shadowsocks-csharp/Program.cs View File

@@ -85,7 +85,7 @@ namespace Shadowsocks
Logging.Error(e.ExceptionObject?.ToString());
MessageBox.Show(
$"{I18N.GetString("Unexpected error, shadowsocks will exit. Please report to")} https://github.com/shadowsocks/shadowsocks-windows/issues {Environment.NewLine}{e.ExceptionObject?.ToString()}",
"Shadowsocks Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
"Shadowsocks non-UI Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
}
@@ -96,7 +96,7 @@ namespace Shadowsocks
Logging.Error(errorMsg);
MessageBox.Show(
$"{I18N.GetString("Unexpected error, shadowsocks will exit. Please report to")} https://github.com/shadowsocks/shadowsocks-windows/issues {Environment.NewLine}{errorMsg}",
"Shadowsocks Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
"Shadowsocks UI Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}


Loading…
Cancel
Save