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:
authorVishal Tak <vtak@gitlab.com>2022-05-09 16:34:24 +0300
committerVishal Tak <vtak@gitlab.com>2022-05-16 10:44:42 +0300
commitfd9edcf18fdf95d57054fe3f3729d6144fb5e040 (patch)
tree518a753a94695ecf1a333c0e42cc15b6a6b8677a /internal
parent058a80c745d6722496847372bec0e0ffd640fcc5 (diff)
Improve the error messages
Diffstat (limited to 'internal')
-rw-r--r--internal/domain/domain.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index f6022b35..1cfee100 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -127,7 +127,7 @@ func (d *Domain) ServeFileHTTP(w http.ResponseWriter, r *http.Request) bool {
if err != nil {
if errors.Is(err, ErrDomainDoesNotExist) {
// serve generic 404
- logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("unable to find any lookup path for domain while serving file")
+ logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("failed to serve the file")
httperrors.Serve404(w)
return true
}
@@ -146,7 +146,7 @@ func (d *Domain) ServeNotFoundHTTP(w http.ResponseWriter, r *http.Request) {
if err != nil {
if errors.Is(err, ErrDomainDoesNotExist) {
// serve generic 404
- logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("unable to find any lookup path for domain while serving the not found pages")
+ logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("failed to serve the not found page")
httperrors.Serve404(w)
return
}
@@ -171,7 +171,7 @@ func (d *Domain) ServeNamespaceNotFound(w http.ResponseWriter, r *http.Request)
if err != nil {
if errors.Is(err, ErrDomainDoesNotExist) {
// serve generic 404
- logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("unable to find any lookup path for domain while finding parent namespace domain for a request that failed authentication")
+ logging.LogRequest(r).WithError(ErrDomainDoesNotExist).Error("failed while finding parent namespace domain for a request that failed authentication")
httperrors.Serve404(w)
return
}