diff --git a/server/gitea/client.go b/server/gitea/client.go index 575ebbc..2e5631f 100644 --- a/server/gitea/client.go +++ b/server/gitea/client.go @@ -146,7 +146,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str log.Error().Err(err).Msg("could not save symlink in cache") } - log.Debug().Msgf("follow symlink from '%s' to '%s'", resource, linkDest) + log.Debug().Msgf("follow symlink from %q to %q", resource, linkDest) return client.ServeRawContent(targetOwner, targetRepo, ref, linkDest) } } diff --git a/server/handler.go b/server/handler.go index 460875c..da33702 100644 --- a/server/handler.go +++ b/server/handler.go @@ -212,7 +212,7 @@ func Handler(mainDomainSuffix, rawDomain string, canonicalDomainCache) } else { html.ReturnErrorPage(ctx, - fmt.Sprintf("explizite set branch '%s' do not exist at '%s/%s'", branch, targetOwner, targetRepo), + fmt.Sprintf("explizite set branch %q do not exist at '%s/%s'", branch, targetOwner, targetRepo), http.StatusFailedDependency) } return @@ -231,7 +231,7 @@ func Handler(mainDomainSuffix, rawDomain string, canonicalDomainCache) } else { html.ReturnErrorPage(ctx, - fmt.Sprintf("explizite set branch '%s' do not exist at '%s/%s'", branch, targetOwner, "pages"), + fmt.Sprintf("explizite set branch %q do not exist at '%s/%s'", branch, targetOwner, "pages"), http.StatusFailedDependency) } return diff --git a/server/upstream/helper.go b/server/upstream/helper.go index fa872c2..6bc23c8 100644 --- a/server/upstream/helper.go +++ b/server/upstream/helper.go @@ -20,7 +20,7 @@ func GetBranchTimestamp(giteaClient *gitea.Client, owner, repo, branch string) * log.Err(err).Msg("Could't fetch default branch from repository") return nil } - log.Debug().Msgf("Succesfully fetched default branch '%s' from Gitea", defaultBranch) + log.Debug().Msgf("Succesfully fetched default branch %q from Gitea", defaultBranch) branch = defaultBranch } diff --git a/server/upstream/upstream.go b/server/upstream/upstream.go index 370c4ee..d37c35e 100644 --- a/server/upstream/upstream.go +++ b/server/upstream/upstream.go @@ -66,7 +66,7 @@ func (o *Options) Upstream(ctx *context.Context, giteaClient *gitea.Client) (fin if branch == nil || branch.Branch == "" { html.ReturnErrorPage(ctx, - fmt.Sprintf("could not get timestamp of branch '%s'", o.TargetBranch), + fmt.Sprintf("could not get timestamp of branch %q", o.TargetBranch), http.StatusFailedDependency) return true }