Skip to content

Commit

Permalink
Clarify error with project missing attributes (#3528)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecloudenback authored Jul 9, 2023
1 parent 0038253 commit 80e64bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function test(ctx::Context, pkgs::Vector{PackageSpec};
Context!(ctx; kwargs...)

if isempty(pkgs)
ctx.env.pkg === nothing && pkgerror("trying to test unnamed project") #TODO Allow this?
ctx.env.pkg === nothing && pkgerror("The Project.toml of the package being tested must have a name and a UUID entry") #TODO Allow this?
push!(pkgs, ctx.env.pkg)
else
project_resolve!(ctx.env, pkgs)
Expand Down

0 comments on commit 80e64bc

Please sign in to comment.