mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
Update error message for private repo access
This commit is contained in:
parent
73da80adc1
commit
6d520c2a40
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ func returnErrorPage(ctx *fasthttp.RequestCtx, code int) {
|
||||||
message += " - domain not specified in <code>.domains</code> file"
|
message += " - domain not specified in <code>.domains</code> file"
|
||||||
}
|
}
|
||||||
if code == fasthttp.StatusFailedDependency {
|
if code == fasthttp.StatusFailedDependency {
|
||||||
message += " - owner, repo or branch doesn't exist (if everything's set up correctly, wait up to 15 minutes for cache invalidation)"
|
message += " - target repo/branch doesn't exist or is private"
|
||||||
}
|
}
|
||||||
ctx.Response.SetBody(bytes.ReplaceAll(NotFoundPage, []byte("%status"), []byte(strconv.Itoa(code)+" "+message)))
|
ctx.Response.SetBody(bytes.ReplaceAll(NotFoundPage, []byte("%status"), []byte(strconv.Itoa(code)+" "+message)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue