Skip to content

Commit d61bca6

Browse files
committed
Fix JuliaLang#35191: Path to stdlib files is incorrect
1 parent 4e2fb5c commit d61bca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/errorshow.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ function show_method_candidates(io::IO, ex::MethodError, @nospecialize kwargs=()
492492
end
493493
print(iob, ")")
494494
show_method_params(iob0, tv)
495-
print(iob, " at ", method.file, ":", method.line)
495+
file, line = updated_methodloc(method)
496+
print(iob, " at ", file, ":", line)
496497
if !isempty(kwargs)
497498
unexpected = Symbol[]
498499
if isempty(kwords) || !(any(endswith(string(kword), "...") for kword in kwords))

0 commit comments

Comments
 (0)