From 18898a0087c2394da62085b00dc4c50081ae7356 Mon Sep 17 00:00:00 2001 From: KristofferC Date: Mon, 18 Sep 2023 15:33:10 +0200 Subject: [PATCH] tweak the error printed for `PrecompileError` to indicate that it doesn't have to be due to `__precompile__(false)` --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index c45d3e2d1a3d6..b49bc1e3194b0 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1692,7 +1692,7 @@ end # we throw PrecompilableError when a module doesn't want to be precompiled struct PrecompilableError <: Exception end function show(io::IO, ex::PrecompilableError) - print(io, "Declaring __precompile__(false) is not allowed in files that are being precompiled.") + print(io, "Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.") end precompilableerror(ex::PrecompilableError) = true precompilableerror(ex::WrappedException) = precompilableerror(ex.error)