From 3d8ccb13610e5acf79c7b69a724f4a5fa0ce693b Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Mon, 26 Feb 2024 14:47:01 -0500 Subject: [PATCH] Fixed Error Handling --- PaloAlto/Jobs/Management.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/PaloAlto/Jobs/Management.cs b/PaloAlto/Jobs/Management.cs index 8df62bb..8371fae 100644 --- a/PaloAlto/Jobs/Management.cs +++ b/PaloAlto/Jobs/Management.cs @@ -300,10 +300,6 @@ private JobResult PerformAddition(ManagementJobConfiguration config) warnings += $"Could not Set The Bindings. There was an error calling out to bindings in the device. {Validators.BuildPaloError(bindingsResponse.Result)}"; } - else - { - warnings += bindingsValidation; - } success = true; } @@ -311,7 +307,7 @@ private JobResult PerformAddition(ManagementJobConfiguration config) if (content != null) { - errorMsg = content.LineMsg != null ? Validators.BuildPaloError(content) : content.Text; + errorMsg += content.LineMsg != null ? Validators.BuildPaloError(content) : content.Text; } }