Skip to content

Commit

Permalink
tweak the error printed for PrecompileError to indicate that it doe…
Browse files Browse the repository at this point in the history
…sn't have to be due to `__precompile__(false)` (JuliaLang#51367)
  • Loading branch information
KristofferC authored Nov 21, 2023
1 parent 67161a3 commit 65090d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,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)
Expand Down

0 comments on commit 65090d1

Please sign in to comment.