add error checking to loading whitelist
This commit is contained in:
parent
ffb3c57181
commit
c438b877ba
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,10 @@ func New(cfg *config.Config) (*Tracker, error) {
|
|||
}
|
||||
|
||||
if cfg.ClientWhitelistEnabled {
|
||||
tkr.LoadApprovedClients(cfg.ClientWhitelist)
|
||||
err = tkr.LoadApprovedClients(cfg.ClientWhitelist)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return tkr, nil
|
||||
|
|
Loading…
Reference in a new issue