Show error message if compiled without controller

This commit is contained in:
Unrud 2022-02-22 22:40:07 +01:00
parent 238ef14843
commit 9543c514d0

View file

@ -177,6 +177,9 @@ func main() {
if secret == "" { if secret == "" {
secret = secureRandBase64(defaultSecretLength) secret = secureRandBase64(defaultSecretLength)
} }
if len(Controllers) == 0 {
log.Fatal("compiled without controller")
}
var controller Controller var controller Controller
var controllerName string var controllerName string
platformErrors := "" platformErrors := ""