From 5b9fb4fbabe851d26ca530e7f33fe24e9afe7894 Mon Sep 17 00:00:00 2001 From: glopesdev Date: Sat, 18 May 2024 08:53:52 +0100 Subject: [PATCH] Log full exception trace for console bootstrap --- Bonsai.Configuration/ConsoleBootstrapper.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Bonsai.Configuration/ConsoleBootstrapper.cs b/Bonsai.Configuration/ConsoleBootstrapper.cs index 1046d683..e076d26e 100644 --- a/Bonsai.Configuration/ConsoleBootstrapper.cs +++ b/Bonsai.Configuration/ConsoleBootstrapper.cs @@ -18,14 +18,7 @@ protected override async Task RunPackageOperationAsync(Func operationFacto try { await operationFactory(); } catch (Exception ex) { - if (ex is AggregateException aex) - { - foreach (var error in aex.InnerExceptions) - { - PackageManager.Logger.LogError(error.Message); - } - } - else PackageManager.Logger.LogError(ex.Message); + PackageManager.Logger.LogError(ex.ToString()); throw; } }