From 0ffc30d58f3e4f62aebe08c73e026de2c1a3cfe4 Mon Sep 17 00:00:00 2001 From: Gadfly Date: Fri, 21 Jun 2024 17:37:04 +0800 Subject: [PATCH] fix: print Type Name in crash log --- src/App.axaml.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index b0cf56f8..e99f88b6 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -53,9 +53,7 @@ namespace SourceGit catch (Exception ex) { var builder = new StringBuilder(); - builder.Append("Crash: "); - builder.Append(ex.Message); - builder.Append("\n\n"); + builder.Append($"Crash::: {ex.GetType().FullName}: {ex.Message}\n\n"); builder.Append("----------------------------\n"); builder.Append($"Version: {Assembly.GetExecutingAssembly().GetName().Version}\n"); builder.Append($"OS: {Environment.OSVersion.ToString()}\n");