fixed a few stuff

This commit is contained in:
yusing
2025-02-10 13:05:21 +08:00
parent 73e2660e59
commit 2c57e439d5
11 changed files with 108 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ import (
func SystemInfo(w http.ResponseWriter, r *http.Request) {
info, err := metrics.GetSystemInfo(r.Context())
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
utils.HandleErr(w, r, err)
return
}
utils.RespondJSON(w, r, info)