add error checking to loading whitelist

This commit is contained in:
Jimmy Zelinskie 2014-07-26 06:15:40 -04:00
parent ffb3c57181
commit c438b877ba

View file

@ -51,7 +51,10 @@ func New(cfg *config.Config) (*Tracker, error) {
} }
if cfg.ClientWhitelistEnabled { if cfg.ClientWhitelistEnabled {
tkr.LoadApprovedClients(cfg.ClientWhitelist) err = tkr.LoadApprovedClients(cfg.ClientWhitelist)
if err != nil {
return nil, err
}
} }
return tkr, nil return tkr, nil