From 3b776e2534c65560df0bf44319ef48fbcb760197 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Thu, 9 Apr 2026 15:24:06 +0900 Subject: [PATCH] Show all inner exceptions --- src/ViewModels/MainViewModel.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ViewModels/MainViewModel.cs b/src/ViewModels/MainViewModel.cs index dc75783..5cc606f 100644 --- a/src/ViewModels/MainViewModel.cs +++ b/src/ViewModels/MainViewModel.cs @@ -515,13 +515,15 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown { LogInfo(e.StackTrace); } - if (e.InnerException != null) + var otherException = e.InnerException; + while (otherException != null) { - LogInfo("Inner exception: " + e.InnerException.Message); - if (e.InnerException.StackTrace != null) + LogInfo(">> Inner exception: " + otherException.Message); + if (otherException.StackTrace != null) { - LogInfo(e.InnerException.StackTrace); + LogInfo(otherException.StackTrace); } + otherException = otherException.InnerException; } LogInfo("Please report this error to a programmer or fix the issue listed above."); IsCreatingPDF = false;