Skip to content

Commit

Permalink
add path to longpath error for context
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 23, 2024
1 parent 6b08e80 commit 5f141b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ function longpath(path::AbstractString)
n = ccall((:GetLongPathNameW, "kernel32"), stdcall,
UInt32, (Ptr{UInt16}, Ptr{UInt16}, UInt32),
p, buf, length(buf))
windowserror(:longpath, n == 0)
windowserror(:longpath, n == 0, extrainfo=path)
x = n < length(buf) # is the buffer big enough?
resize!(buf, n) # shrink if x, grow if !x
x && return transcode(String, buf)
Expand Down

0 comments on commit 5f141b8

Please sign in to comment.