Skip to content

Commit 41613c2

Browse files
authored
Improve error message for missing dependencies in packages (JuliaLang#58878)
1 parent a60815f commit 41613c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/loading.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,8 @@ function __require(into::Module, mod::Symbol)
23782378
else
23792379
manifest_warnings = collect_manifest_warnings()
23802380
throw(ArgumentError("""
2381-
Package $(where.name) does not have $mod in its dependencies:
2381+
Cannot load (`using/import`) module $mod into module $into in package $(where.name)
2382+
because package $(where.name) does not have $mod in its dependencies:
23822383
$manifest_warnings- You may have a partially installed environment. Try `Pkg.instantiate()`
23832384
to ensure all packages in the environment are installed.
23842385
- Or, if you have $(where.name) checked out for development and have

0 commit comments

Comments
 (0)