From 1810b1123dd18cc7539b78fc22a57ebf44c81605 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Fri, 9 Aug 2024 18:29:28 +0200 Subject: [PATCH] don't swallow internal errors (#3987) --- src/API.jl | 1 + 1 file changed, 1 insertion(+) 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)