From c4964232ebab0ea3da9ee5b8c9993a554a77575b Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 19 Sep 2016 15:23:49 -0700 Subject: [PATCH] config: Fail to start for config mistakes. (#2740) --- cmd/routers.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/routers.go b/cmd/routers.go index 251283e6c..08ba5fc6d 100644 --- a/cmd/routers.go +++ b/cmd/routers.go @@ -71,15 +71,11 @@ func newObjectLayer(disks, ignoredDisks []string) (ObjectLayer, error) { // Initialize a new event notifier. err = initEventNotifier(objAPI) - if err != nil { - errorIf(err, "Unable to initialize event notification.") - } + fatalIf(err, "Unable to initialize event notification.") // Initialize and load bucket policies. err = initBucketPolicies(objAPI) - if err != nil { - errorIf(err, "Unable to load all bucket policies.") - } + fatalIf(err, "Unable to load all bucket policies.") // Success. return objAPI, nil