From 44d72eea9a8f478591f21483ac3dc57963e64e72 Mon Sep 17 00:00:00 2001 From: Catherine Date: Mon, 15 Sep 2025 11:46:22 +0000 Subject: [PATCH] Log a clearer message if requested path is not found. --- src/pages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages.go b/src/pages.go index 2ae4ed6..5ffdcbe 100644 --- a/src/pages.go +++ b/src/pages.go @@ -50,6 +50,7 @@ func getPage(w http.ResponseWriter, r *http.Request) error { // if whatever we were serving doesn't exist, try to serve `$root/404.html` if errors.Is(err, os.ErrNotExist) { file, _ = securejoin.OpenInRoot(config.DataDir, filepath.Join(wwwRoot, "404.html")) + err = fmt.Errorf("not found: %s", err.(*os.PathError).Path) } // acquire read capability to the file being served (if possible)