mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Реализована страница 404 ошибки
Реализовано переподключение к Redis в случае, если соединение упадёт
This commit is contained in:
@@ -31,6 +31,8 @@ func FindRecord(username string) (SkinItem, error) {
|
||||
if (decodeErr != nil) {
|
||||
log.Println("Cannot decode record data")
|
||||
}
|
||||
} else {
|
||||
log.Println("Error on request user data")
|
||||
}
|
||||
|
||||
return record, err
|
||||
|
||||
@@ -9,7 +9,7 @@ func NotFound(w http.ResponseWriter, r *http.Request) {
|
||||
json, _ := json.Marshal(map[string]string{
|
||||
"status": "404",
|
||||
"message": "Not Found",
|
||||
"link": "http://docs.ely.by",
|
||||
"link": "http://docs.ely.by/skin-system.html",
|
||||
})
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user