Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-04-30 09:35:13 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-05-11 10:28:42 +0300
commitdf52e3d3f98186ef29e912320bbfdacb768ad7c8 (patch)
treedb0108cc56a23a4918afca587957e0bf9847421d /internal/domain
parent8ea4cb76586c0841456c5973168cd8451f6c6c0a (diff)
Fail if disk is disabled
Return disk disabled error Remove useLegacyStorage leftovers Fix run process
Diffstat (limited to 'internal/domain')
-rw-r--r--internal/domain/domain.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index 636b1bbd..c5b2ec7b 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -102,13 +102,13 @@ func (d *Domain) GetProjectID(r *http.Request) uint64 {
}
// HasLookupPath figures out if the project exists that the user tries to access
-func (d *Domain) HasLookupPath(r *http.Request) bool {
+func (d *Domain) HasLookupPath(r *http.Request) error {
if d == nil {
- return false
+ return ErrDomainDoesNotExist
}
- _, err := d.GetLookupPath(r)
- return err == nil
+ _, err := d.GetLookupPath(r)
+ return err
}
// EnsureCertificate parses the PEM-encoded certificate for the domain