chore: add configuration validation

This commit is contained in:
Jonas Kaninda
2024-11-24 06:04:55 +01:00
parent 6b2df85c88
commit c8b16a204c
4 changed files with 46 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ func getMiddleware(rules []string, middlewares []Middleware) (Middleware, error)
continue
}
return Middleware{}, errors.New("middlewares not found with name: [" + strings.Join(rules, ";") + "]")
return Middleware{}, errors.New("middleware not found with name: [" + strings.Join(rules, ";") + "]")
}
func doesExist(tyName string) bool {