diff --git a/PSUtilities/ScriptTools.ps1 b/PSUtilities/ScriptTools.ps1 index f151a3a..b3d44a5 100644 --- a/PSUtilities/ScriptTools.ps1 +++ b/PSUtilities/ScriptTools.ps1 @@ -439,9 +439,16 @@ Function Import-Config () { } } Catch { - + Add-LogEntry "Error loading config file! Please make sure the correct path was provided, and that it is a properly formatted CSV file" -As Error + Write-Host $_ + Exit } } + Else { + Add-LogEntry "Error loading config file! Please make sure the correct path was provided, and that it is a properly formatted file" -As Error + Write-Host $_ + Exit + } } Function Set-RegistryKey {