Update error message for private repo access

This commit is contained in:
Moritz Marquardt 2021-12-01 21:44:54 +01:00
parent 73da80adc1
commit 6d520c2a40
No known key found for this signature in database
GPG Key ID: D5788327BEE388B6
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ func returnErrorPage(ctx *fasthttp.RequestCtx, code int) {
message += " - domain not specified in <code>.domains</code> file"
}
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)))
}