summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2025-01-25 14:17:16 +0100
committerJulian Hurst <ark@mansus.space>2025-01-25 14:17:16 +0100
commit7b81f3c7687d1f55410a88298e89c53ab14e41c1 (patch)
treedc11e1a2f6b348f19281cacd2ad0deb8d1ba1a04
parentf94c28db9714ac19934b7f104780aeaa9bd0ee64 (diff)
downloadbox-7b81f3c7687d1f55410a88298e89c53ab14e41c1.tar.gz
Don't print error on notfound
-rw-r--r--main.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/main.go b/main.go
index 75f958d..2df8a6f 100644
--- a/main.go
+++ b/main.go
@@ -58,7 +58,6 @@ func (handler BoxHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if errors.Is(err, fs.ErrNotExist) {
log.Println(err)
w.WriteHeader(http.StatusNotFound)
- fmt.Fprint(w, err)
return
} else if err != nil {
log.Println(err)