mirror of
https://github.com/simongregorebner/gitea-pages.git
synced 2025-04-21 02:10:02 +02:00
add error log
This commit is contained in:
parent
f8b70e8cb9
commit
94dd5396ad
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user