Skip to content

Commit 4d06e00

Browse files
authored
Merge pull request #29325 from JuliaLang/vc/restored
check return from jl_restore_incremental correctly
2 parents f7f87c2 + f474f75 commit 4d06e00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/loading.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ end
615615
# and it reconnects the Base.Docs.META
616616
function _include_from_serialized(path::String, depmods::Vector{Any})
617617
sv = ccall(:jl_restore_incremental, Any, (Cstring, Any), path, depmods)
618+
if isa(sv, Exception)
619+
return sv
620+
end
618621
restored = sv[1]
619622
if !isa(restored, Exception)
620623
for M in restored::Vector{Any}

0 commit comments

Comments
 (0)