fix: print Type Name in crash log

This commit is contained in:
Gadfly 2024-06-21 17:37:04 +08:00
parent aad91ea834
commit 0ffc30d58f
No known key found for this signature in database

View file

@ -53,9 +53,7 @@ namespace SourceGit
catch (Exception ex) catch (Exception ex)
{ {
var builder = new StringBuilder(); var builder = new StringBuilder();
builder.Append("Crash: "); builder.Append($"Crash::: {ex.GetType().FullName}: {ex.Message}\n\n");
builder.Append(ex.Message);
builder.Append("\n\n");
builder.Append("----------------------------\n"); builder.Append("----------------------------\n");
builder.Append($"Version: {Assembly.GetExecutingAssembly().GetName().Version}\n"); builder.Append($"Version: {Assembly.GetExecutingAssembly().GetName().Version}\n");
builder.Append($"OS: {Environment.OSVersion.ToString()}\n"); builder.Append($"OS: {Environment.OSVersion.ToString()}\n");