Skip to content

Commit 9f7eaa3

Browse files
improve dev error message when Project.toml is missing (#2725)
1 parent 252e895 commit 9f7eaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ end
783783
function resolve_projectfile!(env::EnvCache, pkg, project_path)
784784
project_file = projectfile_path(project_path; strict=true)
785785
project_file === nothing && pkgerror(string("could not find project file in package at `",
786-
pkg.repo.source !== nothing ? pkg.repo.source : (pkg.path)), "` maybe `subdir` needs to be specified")
786+
something(pkg.repo.source, pkg.path, project_path), "` maybe `subdir` needs to be specified"))
787787
project_data = read_package(project_file)
788788
if pkg.uuid === nothing || pkg.uuid == project_data.uuid
789789
pkg.uuid = project_data.uuid

0 commit comments

Comments
 (0)