chore: fix typo

This commit is contained in:
Larvan2
2023-09-24 19:00:51 +08:00
parent 89d9cb0539
commit e6366f7442
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ func upgradeCore(w http.ResponseWriter, r *http.Request) {
func updateUI(w http.ResponseWriter, r *http.Request) {
err := config.UpdateUI()
if err != nil {
if errors.Is(err, config.ErrImcompleteConf) {
if errors.Is(err, config.ErrIncompleteConf) {
log.Warnln("%s", err)
render.Status(r, http.StatusNotImplemented)
render.JSON(w, r, newError(fmt.Sprintf("%s", err)))