Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Oct 6, 2023
1 parent 9ea33fd commit 3fb931d
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1826,35 +1826,19 @@ end

function collect_manifest_warnings()
unsuitable_manifests, dev_manifests = find_unsuitable_manifests_versions()
msg = if isempty(unsuitable_manifests)
""
elseif length(unsuitable_manifests) == 1
"""
- Note that a manifest in the load path was resolved with a different
julia version, which may be the cause of the error:
$(only(unsuitable_manifests))
"""
else
"""
- Note that manifests in the load path were resolved with a different
msg = ""
if !isempty(unsuitable_manifests)
msg *= """
- Note that the following manifests in the load path were resolved with a different
julia version, which may be the cause of the error:
$(join(unsuitable_manifests, "\n "))
"""
end
if length(dev_manifests) == 1
if !isempty(dev_manifests)
msg *= """
- Note that a manifest in the load path was resolved a potentially
- Note that the following manifests in the load path were resolved a potentially
different DEV version of the current version, which may be the cause
of the error:
$(only(dev_manifests))
"""
else
msg *= """
- Note that manifests in the load path were resolved with potentially
different DEV versions of the current version, which may be the cause
of the error:
$(join(dev_manifests, "\n "))
Expand Down

0 comments on commit 3fb931d

Please sign in to comment.