Show error message if compiled without controller
This commit is contained in:
parent
238ef14843
commit
9543c514d0
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
|
@ -177,6 +177,9 @@ func main() {
|
|||
if secret == "" {
|
||||
secret = secureRandBase64(defaultSecretLength)
|
||||
}
|
||||
if len(Controllers) == 0 {
|
||||
log.Fatal("compiled without controller")
|
||||
}
|
||||
var controller Controller
|
||||
var controllerName string
|
||||
platformErrors := ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue