From 5fce509677ca01cd7741e0acaec0ed638be0416d Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Tue, 9 Dec 2025 23:19:07 -0500 Subject: [PATCH] Update samy.ps1 --- samy.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samy.ps1 b/samy.ps1 index b51d67a..26f9e65 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -111,17 +111,18 @@ function Import-SamyModule { $resp = Invoke-WebRequest -Uri $url -UseBasicParsing -ErrorAction Stop $content = $resp.Content if (-not $content) { - Write-Host "[Error] Module $Name from $url returned empty content." -ForegroundColor Red + Write-Host ("[Error] Module {0} from {1} returned empty content." -f $Name, $url) -ForegroundColor Red throw "Empty module content." } Invoke-Expression $content } catch { - Write-Host "[Error] Failed to load module $Name from $url: $($_.Exception.Message)" -ForegroundColor Red + Write-Host ("[Error] Failed to load module {0} from {1}: {2}" -f $Name, $url, $_.Exception.Message) -ForegroundColor Red throw } } + # Load subsystems in a predictable order Import-SamyModule -Name 'Samy.Logging.ps1' # Write-LogHelper, Write-LogHybrid Import-SamyModule -Name 'Samy.SVSBootstrap.ps1' # Install-SVSMSP, cleanup, NuGet bootstrap