Skip to content

Commit

Permalink
Impove output
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Sep 30, 2024
1 parent 853fb9b commit 3f5268d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Public/Get-PowerShellAssemblyMetaData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
param (
[Parameter(Mandatory)][string] $Path
)
Write-Text -Text "[-] Loading assembly $Path" -Color Cyan
Write-Text -Text " [+] Loading assembly $Path" -Color Cyan
try {
# Get the path to System.Management.Automation assembly
$smaAssembly = [System.Management.Automation.PSObject].Assembly
Expand Down Expand Up @@ -55,7 +55,7 @@

$resolver = [System.Reflection.PathAssemblyResolver]::new($resolverPaths)
} catch {
Write-Text -Text "[-] Can't create PathAssemblyResolver. Please ensure all dependencies are present. Error: $($_.Exception.Message)" -Color Red
Write-Text -Text " [-] Can't create PathAssemblyResolver. Please ensure all dependencies are present. Error: $($_.Exception.Message)" -Color Red
return $false
}
try {
Expand Down Expand Up @@ -94,7 +94,7 @@
AliasesToExport = $aliasesToExport
}
} catch {
Write-Text -Text "[-] Can't load assembly $Path. Error: $($_.Exception.Message)" -Color Red
Write-Text -Text " [-] Can't load assembly $Path. Error: $($_.Exception.Message)" -Color Red
$context.Dispose()
return $false
} finally {
Expand Down

0 comments on commit 3f5268d

Please sign in to comment.