From 29b1bbe412dfe52d09e2b60bad63b95d3c8841f7 Mon Sep 17 00:00:00 2001 From: TeaTime762 <74647711+TeaTime762@users.noreply.github.com> Date: Wed, 31 Aug 2022 08:41:36 +0200 Subject: [PATCH] Rethrow exception on MasterNodeManager StartUp (#1906) * So far errors during startup of MasterNodeManager were consumed and only logged, so the app did not know there is an issue * New behavior is to rethrow exception to retrieve it outside the NuGet package * Update MasterNodeManager.cs --- Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs b/Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs index 2adbf6aa6a..8789bcd50f 100644 --- a/Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs +++ b/Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs @@ -322,6 +322,7 @@ namespace Opc.Ua.Server catch (Exception e) { Utils.LogError(e, "Unexpected error creating address space for NodeManager #{0}.", ii); + throw; } } @@ -337,6 +338,7 @@ namespace Opc.Ua.Server catch (Exception e) { Utils.LogError(e, "Unexpected error adding references for NodeManager #{0}.", ii); + throw; } } }