From 20b5fb788b54c2971c9872ad7ef59a16557ffefc Mon Sep 17 00:00:00 2001 From: Hunter T Date: Fri, 15 Mar 2024 14:08:39 -0700 Subject: [PATCH] Remove "()" from internal error message --- ActiveDirectoryQuerier/ActiveDirectory/ADCommandsFetcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveDirectoryQuerier/ActiveDirectory/ADCommandsFetcher.cs b/ActiveDirectoryQuerier/ActiveDirectory/ADCommandsFetcher.cs index 6ab5746..edd8a0c 100644 --- a/ActiveDirectoryQuerier/ActiveDirectory/ADCommandsFetcher.cs +++ b/ActiveDirectoryQuerier/ActiveDirectory/ADCommandsFetcher.cs @@ -23,7 +23,7 @@ public static async Task> GetADCommands() if (psOutput.HadErrors) { string errorMessage = "Internal Error: An error occurred while retrieving the Active Directory commands: " + - $"({string.Join(" ", psOutput.StdErr)})"; + $"{string.Join(" ", psOutput.StdErr)}"; MessageBox.Show(errorMessage, "Error", MessageBoxButton.OK, MessageBoxImage.Error); throw new InvalidPowerShellStateException(errorMessage); }