From c438b877ba312b724375dfcffa35a05b954db45f Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Sat, 26 Jul 2014 06:15:40 -0400 Subject: [PATCH] add error checking to loading whitelist --- tracker/tracker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tracker/tracker.go b/tracker/tracker.go index 5f70f18..17a346e 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -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