From af454b987bd65bc5cd6e72adcbb5e44db1a6eb68 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 15 Mar 2025 11:09:02 +0100 Subject: [PATCH 1/2] ZaP-object-editor-inner-exception-log --- Source/Editor/Editor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs index 7f2351426..5503c9db3 100644 --- a/Source/Editor/Editor.cs +++ b/Source/Editor/Editor.cs @@ -851,6 +851,11 @@ namespace FlaxEditor { LogWarning("Exception: " + ex.Message); LogWarning(ex.StackTrace); + if (ex.InnerException != null) + { + LogWarning("Cause: " + ex.InnerException.Message); + LogWarning(ex.InnerException.StackTrace); + } } /// From 6c464569f20c29e3a79ca31e3c9555c40f69c4c8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Mar 2025 12:11:25 +0100 Subject: [PATCH 2/2] Add even more nested inner exceptions handling #3288 --- Source/Editor/Editor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs index 5503c9db3..8d42ddea1 100644 --- a/Source/Editor/Editor.cs +++ b/Source/Editor/Editor.cs @@ -853,8 +853,8 @@ namespace FlaxEditor LogWarning(ex.StackTrace); if (ex.InnerException != null) { - LogWarning("Cause: " + ex.InnerException.Message); - LogWarning(ex.InnerException.StackTrace); + LogWarning("Inner exception:"); + LogWarning(ex.InnerException); } }