Skip to content

Commit

Permalink
Precompilation: add tip to auto-precomp for getting error details (Ju…
Browse files Browse the repository at this point in the history
…liaLang#2462)

* add tip to auto-precomp for getting error details

* switch tip to Pkg. API

* call -> run
  • Loading branch information
IanButterworth authored Mar 29, 2021
1 parent d3a3d38 commit 0fa812e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1304,8 +1304,10 @@ function precompile(ctx::Context; internal_call::Bool=false, strict::Bool=false,
)
end
if internal_call && !isempty(failed_deps)
plural = length(failed_deps) == 1 ? "y" : "ies"
print(iostr, "\n ", color_string("$(length(failed_deps))", Base.error_color()), " dependenc$(plural) errored")
plural1 = length(failed_deps) == 1 ? "y" : "ies"
plural2 = length(failed_deps) == 1 ? "" : "s"
print(iostr, "\n ", color_string("$(length(failed_deps))", Base.error_color()), " dependenc$(plural1) errored. ")
print(iostr, "To see a full report either run `import Pkg; Pkg.precompile()` or load the package$(plural2)")
end
end
lock(print_lock) do
Expand Down

0 comments on commit 0fa812e

Please sign in to comment.