From f635c21c64ee7ad4078170e3ffc2283a53fdf6a1 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 12 Nov 2022 00:05:51 +0100 Subject: [PATCH] update func desc --- html/error.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/error.go b/html/error.go index 4194533..a1537e1 100644 --- a/html/error.go +++ b/html/error.go @@ -9,8 +9,8 @@ import ( "codeberg.org/codeberg/pages/server/context" ) -// ReturnErrorPage sets the response status code and writes NotFoundPage to the response body, with "%status" replaced -// with the provided status code. +// ReturnErrorPage sets the response status code and writes NotFoundPage to the response body, +// with "%status%" and %message% replaced with the provided statusCode and msg func ReturnErrorPage(ctx *context.Context, msg string, statusCode int) { ctx.RespWriter.Header().Set("Content-Type", "text/html; charset=utf-8") ctx.RespWriter.WriteHeader(statusCode)