From a3aa6ea7aee0dd81f517ed0fff8d5e048a7566f5 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 20 May 2026 11:31:34 +0200 Subject: [PATCH] Refactor Program.cs for exception handling and partial class Updated the `try-catch` block in `Program.cs` to rethrow exceptions after logging them, ensuring proper error propagation. Added a `public partial class Program` declaration to enable splitting the `Program` class across multiple files. Adjusted closing braces to align with the new structure. --- src/ReC.API/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ReC.API/Program.cs b/src/ReC.API/Program.cs index 08ec914..3da3948 100644 --- a/src/ReC.API/Program.cs +++ b/src/ReC.API/Program.cs @@ -97,4 +97,6 @@ catch(Exception ex) { logger.Error(ex, "Stopped program because of exception"); throw; -} \ No newline at end of file +} + +public partial class Program; \ No newline at end of file