add error log

This commit is contained in:
ebner 2025-03-03 13:37:24 +01:00
parent f8b70e8cb9
commit 94dd5396ad

View File

@ -164,6 +164,7 @@ func (module GiteaPagesModule) ServeHTTP(writer http.ResponseWriter, request *ht
// Handle request
content, err := module.getFile(organization, repository, module.PagesBranch, path)
if err != nil {
module.Logger.Error("Unable to retrieve file - error: " + err.Error())
return caddyhttp.Error(http.StatusNotFound, err)
}