fix merge conflict relict

This commit is contained in:
6543 2022-11-11 23:57:38 +01:00
parent 699c142105
commit 46a343c182
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -196,7 +196,7 @@ func (o *Options) Upstream(ctx *context.Context, giteaClient *gitea.Client) (fin
if reader != nil {
_, err := io.Copy(ctx.RespWriter, reader)
if err != nil {
log.Printf("Couldn't write body: %s\n", err)
log.Error().Err(err).Msgf("Couldn't write body for %q", o.TargetPath)
html.ReturnErrorPage(ctx, "", http.StatusInternalServerError)
return true
}