We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d08b24 commit b44bf4eCopy full SHA for b44bf4e
Harden-Windows-Security Module/Main files/C#/GUI/Confirm/View.cs
@@ -319,7 +319,14 @@ await Task.Run(() =>
319
// Get the selected file path from the dialog
320
string filePath = saveFileDialog.FileName;
321
322
- ExportSecOpsToCsv(filePath, SecOpsObservableCollection);
+ try
323
+ {
324
+ ExportSecOpsToCsv(filePath, SecOpsObservableCollection);
325
+ }
326
+ catch (Exception ex)
327
328
+ Logger.LogMessage($"Failed to export the results to the file: {ex.Message}", LogTypeIntel.ErrorInteractionRequired);
329
330
331
Logger.LogMessage($"Compliance check results have been successfully exported.", LogTypeIntel.InformationInteractionRequired);
332
}
0 commit comments