Skip to content

Commit 7913f54

Browse files
Add fileloadexception metadata in trace
1 parent b6bf046 commit 7913f54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dsc/psresourceget.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ function ConvertInputToPSResource(
275275
# catch any un-caught exception and write it to the error stream
276276
trap {
277277
Write-Trace -Level Error -message $_.Exception.Message
278+
Write-Trace -Level Error -message $_.Exception.FileName
279+
Write-Trace -Level Error -message $_.Exception.HResult
280+
278281
# exit 1
279282
Get-LoadedAssembliesByALC | Select-Object -Property ALCName, AssemblyName, Location | ForEach-Object {
280283
Write-Trace -message "ALC: $($_.ALCName) - Assembly: $($_.AssemblyName) - Location: $($_.Location)" -level trace

0 commit comments

Comments
 (0)