Update error message for private repo access

pull/9/head
Moritz Marquardt 2021-12-01 21:44:54 +01:00
rodzic 73da80adc1
commit 6d520c2a40
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D5788327BEE388B6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)))
}