diff --git a/src/API.jl b/src/API.jl index 4055ef4d43..5b5657255d 100644 --- a/src/API.jl +++ b/src/API.jl @@ -1563,6 +1563,7 @@ function precompile(ctx::Context, pkgs::Vector{PackageSpec}; internal_call::Bool length(tasks) == 1 && notify(interrupted_or_done) end end + Base.errormonitor(task) # interrupts are handled separately so ok to watch for other errors like this push!(tasks, task) end isempty(tasks) && notify(interrupted_or_done)