From f474f753fb86935ea1cedd568c8c87795370222f Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sat, 22 Sep 2018 20:06:55 -0400 Subject: [PATCH] check return from jl_restore_incremental correctly --- base/loading.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/loading.jl b/base/loading.jl index 18a8765d68480..83947985b6bda 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -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}