Remove not useful, unhelpful and scary error
This commit is contained in:
parent
2152001ab8
commit
04dc5b4451
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user