Skip to content

Commit 1f07453

Browse files
IanButterworthKristofferC
authored andcommitted
Precompilation: add tip to auto-precomp for getting error details (#2462)
* add tip to auto-precomp for getting error details * switch tip to Pkg. API * call -> run (cherry picked from commit 0fa812e)
1 parent b22c725 commit 1f07453

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/API.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,8 +1219,10 @@ function precompile(ctx::Context; internal_call::Bool=false, strict::Bool=false,
12191219
)
12201220
end
12211221
if internal_call && !isempty(failed_deps)
1222-
plural = length(failed_deps) == 1 ? "y" : "ies"
1223-
print(iostr, "\n ", color_string("$(length(failed_deps))", Base.error_color()), " dependenc$(plural) errored")
1222+
plural1 = length(failed_deps) == 1 ? "y" : "ies"
1223+
plural2 = length(failed_deps) == 1 ? "" : "s"
1224+
print(iostr, "\n ", color_string("$(length(failed_deps))", Base.error_color()), " dependenc$(plural1) errored. ")
1225+
print(iostr, "To see a full report either run `import Pkg; Pkg.precompile()` or load the package$(plural2)")
12241226
end
12251227
end
12261228
lock(print_lock) do

0 commit comments

Comments
 (0)