Skip to content

Commit 5f141b8

Browse files
add path to longpath error for context
1 parent 6b08e80 commit 5f141b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/path.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function longpath(path::AbstractString)
476476
n = ccall((:GetLongPathNameW, "kernel32"), stdcall,
477477
UInt32, (Ptr{UInt16}, Ptr{UInt16}, UInt32),
478478
p, buf, length(buf))
479-
windowserror(:longpath, n == 0)
479+
windowserror(:longpath, n == 0, extrainfo=path)
480480
x = n < length(buf) # is the buffer big enough?
481481
resize!(buf, n) # shrink if x, grow if !x
482482
x && return transcode(String, buf)

0 commit comments

Comments
 (0)