Skip to content

Commit a5eebca

Browse files
authored
Add details in error message for Project.toml (#467)
I have seen this error come up a few times when `subdir` is missing or has a typo, which can confuse people. I think if we can pass through those parameters it might call more attention to whatever is wrong.
1 parent b468d19 commit a5eebca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webui/routes/register.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function register(r::HTTP.Request)
3838

3939
# Get the (Julia)Project.toml, and make sure it is valid.
4040
toml = gettoml(u.forge, repo, ref, subdir)
41-
toml === nothing && return json(400; error="(Julia)Project.toml was not found")
41+
toml === nothing && return json(400; error="(Julia)Project.toml was not found in repo `$repo` with ref `$ref` and subdir `$subdir`")
4242
project = try
4343
RegistryTools.Project(TOML.parse(IOBuffer(toml)))
4444
catch e

0 commit comments

Comments
 (0)