From 54aa48e1d1cd7922d9a5c4b5320151247d73bde8 Mon Sep 17 00:00:00 2001 From: "idhir.madjour" Date: Mon, 22 Dec 2025 19:14:23 +0100 Subject: [PATCH] im_cacib/CorrectionOfIssueOnErrorTreatment - First correcetion regarding error treatment on ExceptionManager. --- Common/src/Utils/ExceptionManager.cs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Common/src/Utils/ExceptionManager.cs b/Common/src/Utils/ExceptionManager.cs index 60a06f006..d0a6d61c7 100644 --- a/Common/src/Utils/ExceptionManager.cs +++ b/Common/src/Utils/ExceptionManager.cs @@ -1,17 +1,17 @@ // This file is part of the ArmoniK project -// +// // Copyright (C) ANEO, 2021-2025. All rights reserved. -// +// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY, without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. -// +// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . @@ -231,14 +231,10 @@ public void RecordError(ILogger? logger, args); } - if (nbError == maxError_ + 1) + if (nbError >= maxError_ + 1) { logger_?.LogCritical("Stop Application after too many errors"); earlyCts_.Cancel(); - } - - if (nbError >= maxError_ + 1) - { Failed = true; } }