From 52a422d6cc2a59a5b0ec00adc41eaca0bb460a21 Mon Sep 17 00:00:00 2001 From: GraceSolutions Date: Mon, 14 Apr 2025 23:20:15 -0400 Subject: [PATCH] Improve PSM1 file: use = for assignment and provide more detailed verbose output --- output/PSOPNSenseAPI/PSOPNSenseAPI.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/PSOPNSenseAPI/PSOPNSenseAPI.psm1 b/output/PSOPNSenseAPI/PSOPNSenseAPI.psm1 index 46b3d00..adb5478 100644 --- a/output/PSOPNSenseAPI/PSOPNSenseAPI.psm1 +++ b/output/PSOPNSenseAPI/PSOPNSenseAPI.psm1 @@ -7,8 +7,8 @@ $dllFiles = Get-ChildItem -Path $libPath -Filter "*.dll" foreach ($dll in $dllFiles) { try { $dllBytes = [System.IO.File]::ReadAllBytes($dll.FullName) - [System.Reflection.Assembly]::Load($dllBytes) | Out-Null - Write-Verbose "Loaded assembly: $($dll.Name)" + $Null = [System.Reflection.Assembly]::Load($dllBytes) + Write-Verbose "Attempting to load assembly: $($dll.FullName)" } catch { Write-Warning "Failed to load assembly $($dll.Name): $_"