提交记录修改packaging/windows/installation-files.ps1+2 −1看文件
| @@ -23,7 +23,8 @@ trap { | ||
| 23 | 23 | $chain += @{type = $exception.GetType().FullName; hresult = $exception.HResult} |
| 24 | 24 | $exception = $exception.InnerException |
| 25 | 25 | } |
| 26 | 删除: @{operation = $Operation; phase = $diagnosticStep; pointerSize = [IntPtr]::Size; errors = $chain} | ConvertTo-Json -Depth 4 | | |
| 26 | 新增: $lines = @([regex]::Matches($failure.ScriptStackTrace, ': line (\d+)') | ForEach-Object { [int]$_.Groups[1].Value }) | |
| 27 | 新增: @{operation = $Operation; phase = $diagnosticStep; pointerSize = [IntPtr]::Size; errors = $chain; lines = $lines; category = [string]$failure.CategoryInfo.Category} | ConvertTo-Json -Depth 4 | | |
| 27 | 28 | Set-Content -LiteralPath $Diagnostics -Encoding UTF8 |
| 28 | 29 | } |
| 29 | 30 | } catch { } |

