Skip to content

Commit 75732a4

Browse files
symlink: don't warn on Windows symlink failure (fix #37845)
1 parent 17ab43e commit 75732a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/file.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,12 +977,13 @@ function symlink(p::AbstractString, np::AbstractString)
977977
end
978978
end
979979
err = ccall(:jl_fs_symlink, Int32, (Cstring, Cstring, Cint), p, np, flags)
980+
sym = "symlink"
980981
@static if Sys.iswindows()
981982
if err < 0 && !isdir(p)
982-
@warn "On Windows, creating file symlinks requires Administrator privileges" maxlog=1 _group=:file
983+
sym = "On Windows, creating symlinks requires Administrator privileges.\nsymlink"
983984
end
984985
end
985-
uv_error("symlink",err)
986+
uv_error(sym, err)
986987
end
987988

988989
"""

0 commit comments

Comments
 (0)