GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Address PR Comments · PowerShell/PowerShell@88b4378

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • build.psm1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎build.psm1‎

Copy file name to clipboardExpand all lines: build.psm1
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,10 +2051,10 @@ function script:Start-NativeExecution
20512051
}
20522052

20532053
# Get caller location for easier debugging
2054-
$callerLocation = (Get-PSCallStack -ErrorAction SilentlyContinue)[1].Location
2055-
if($callerLocation)
2054+
$caller = Get-PSCallStack -ErrorAction SilentlyContinue
2055+
if($caller)
20562056
{
2057-
$callerLocationParts = $callerLocation -split ":\s*line\s*"
2057+
$callerLocationParts = $caller[1].Location -split ":\s*line\s*"
20582058
$callerFile = $callerLocationParts[0]
20592059
$callerLine = $callerLocationParts[1]
20602060

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.