Skip to content

Commit

Permalink
check return from jl_restore_incremental correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Sep 23, 2018
1 parent a854139 commit f474f75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ end
# and it reconnects the Base.Docs.META
function _include_from_serialized(path::String, depmods::Vector{Any})
sv = ccall(:jl_restore_incremental, Any, (Cstring, Any), path, depmods)
if isa(sv, Exception)
return sv
end
restored = sv[1]
if !isa(restored, Exception)
for M in restored::Vector{Any}
Expand Down

0 comments on commit f474f75

Please sign in to comment.