mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
rename<CrashInfo>: rename Models.Issue to Models.CrashInfo
This commit is contained in:
parent
838e688a0c
commit
0966baa1d8
2 changed files with 7 additions and 7 deletions
|
@ -8,17 +8,17 @@ namespace SourceGit.Models {
|
|||
/// <summary>
|
||||
/// 崩溃日志生成
|
||||
/// </summary>
|
||||
public class Issue {
|
||||
public static void Create(System.Exception e) {
|
||||
public class CrashInfo {
|
||||
public static void Create(Exception e) {
|
||||
var builder = new StringBuilder();
|
||||
builder.Append("Crash: ");
|
||||
builder.Append(e.Message);
|
||||
builder.Append("\n\n");
|
||||
builder.Append("----------------------------\n");
|
||||
builder.Append($"Windows OS: {Environment.OSVersion}\n");
|
||||
builder.Append($"Version: {Assembly.GetExecutingAssembly().GetName().Version}");
|
||||
builder.Append($"Platform: {AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName}");
|
||||
builder.Append($"Source: {e.Source}");
|
||||
builder.Append($"Version: {Assembly.GetExecutingAssembly().GetName().Version}\n");
|
||||
builder.Append($"Platform: {AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName}\n");
|
||||
builder.Append($"Source: {e.Source}\n");
|
||||
builder.Append($"---------------------------\n\n");
|
||||
builder.Append(e.StackTrace);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue