From 6bc6d475f994c4b2d12b1f80f2159e4e6e8af3f6 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Thu, 16 Jun 2022 22:36:54 +0200 Subject: [PATCH] No longer trace 'ex' twice, only further up in the callstack (#1949) --- .../Container/ContainerHooks/ContainerHookManager.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs index 850fb8ebe..d38058e07 100644 --- a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs +++ b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs @@ -174,8 +174,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks } catch (Exception ex) { - Trace.Error(ex); - throw new Exception($"Custom container implementation failed with error: {ex.Message} Please contact your self hosted runner administrator.", ex); + throw new Exception($"Executing the custom container implementation failed. Please contact your self hosted runner administrator.", ex); } }