Skip to content

Commit 29aca84

Browse files
fixes
1 parent 0a0a226 commit 29aca84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/loading.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,9 +1378,9 @@ Returns whether a given PkgId within the active project is precompiled.
13781378
function isprecompiled(pkg::PkgId;
13791379
stale_cache::Dict{StaleCacheKey,Bool}=Dict{StaleCacheKey, Bool}(),
13801380
cachepaths::Vector{String}=Base.find_all_in_cache_path(pkg),
1381-
sourcepath::String=Base.locate_package(pkg)
1381+
sourcepath::Union{String,Nothing}=Base.locate_package(pkg)
13821382
)
1383-
isnothing(sourcepath) && error("Cannot locate source for $(repr(PkgId))")
1383+
isnothing(sourcepath) && error("Cannot locate source for $(repr(pkg))")
13841384
for path_to_try in cachepaths
13851385
staledeps = stale_cachefile(sourcepath, path_to_try, ignore_loaded = true)
13861386
if staledeps === true

0 commit comments

Comments
 (0)