diff --git a/src/svsmsp.install.ps1 b/src/svsmsp.install.ps1 index 24e6aff..d354679 100644 --- a/src/svsmsp.install.ps1 +++ b/src/svsmsp.install.ps1 @@ -160,7 +160,7 @@ function Install-SVSMSP { Unregister-PSRepository -Name $NewRepositoryName -ErrorAction Stop Write-LogHybrid "$NewRepositoryName repository unregistered (PSGet v2)." "Success" "SVSModule" -LogToEvent } catch { - Write-LogHybrid "Failed to unregister PSRepository $NewRepositoryName: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent + Write-LogHybrid "Failed to unregister PSRepository ${NewRepositoryName}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent } } @@ -170,7 +170,7 @@ function Install-SVSMSP { Unregister-PSResourceRepository -Name $NewRepositoryName -ErrorAction Stop Write-LogHybrid "$NewRepositoryName repository unregistered (PSResourceGet)." "Success" "SVSModule" -LogToEvent } catch { - Write-LogHybrid "Failed to unregister PSResource repo $NewRepositoryName: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent + Write-LogHybrid "Failed to unregister PSResource repo ${NewRepositoryName}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent } } } @@ -279,7 +279,7 @@ function Install-SVSMSP { } } } catch { - Write-LogHybrid "Installation failed using $strategy: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent + Write-LogHybrid "Installation failed using ${strategy}: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent throw }