Remove not useful, unhelpful and scary error

This commit is contained in:
Gabe Kangas 2021-10-21 11:31:19 -07:00
parent 2152001ab8
commit 04dc5b4451

View File

@ -30,8 +30,6 @@ func ServeAdmin(w http.ResponseWriter, r *http.Request) {
path = filepath.Join(path, "index.html") path = filepath.Join(path, "index.html")
} else if _, err := fs.Stat(adminFiles, path+"index.html"); err == nil { } else if _, err := fs.Stat(adminFiles, path+"index.html"); err == nil {
path = filepath.Join(path, "index.html") path = filepath.Join(path, "index.html")
} else if err != nil {
log.Errorln(err)
} }
f, err := adminFiles.Open(path) f, err := adminFiles.Open(path)