Skip to content

Commit

Permalink
Show error message on missing backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Ranger committed Sep 27, 2021
1 parent 0dae851 commit d4a9ae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ func main() {

// Initialize backend
switch configuration.Backend {
case "":
log.Fatalf("no backend configuration found (is it missing?) - please choose one of the available backends")
case "ipset":
activeBackend = &ipsetBackend{}
case "nft":
Expand Down

0 comments on commit d4a9ae2

Please sign in to comment.