Skip to content

Commit

Permalink
Better error when Pkg can't be loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 16, 2019
1 parent 220e311 commit d98985f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ const LOAD_PATH = copy(Base.LOAD_PATH)
try
push!(empty!(Base.LOAD_PATH), joinpath(Sys.STDLIB, "Pkg"))
using Pkg
catch
printstyled("Error: "; bold=true, color=:red)
printstyled("could not load Pkg.\n"; color=:red)
rethrow()
finally
append!(empty!(Base.LOAD_PATH), LOAD_PATH)
end
Expand Down

0 comments on commit d98985f

Please sign in to comment.