config: Fail to start for config mistakes. (#2740)

This commit is contained in:
Harshavardhana 2016-09-19 15:23:49 -07:00 committed by GitHub
parent ef3c807b4a
commit c4964232eb
1 changed files with 2 additions and 6 deletions

View File

@ -71,15 +71,11 @@ func newObjectLayer(disks, ignoredDisks []string) (ObjectLayer, error) {
// Initialize a new event notifier. // Initialize a new event notifier.
err = initEventNotifier(objAPI) err = initEventNotifier(objAPI)
if err != nil { fatalIf(err, "Unable to initialize event notification.")
errorIf(err, "Unable to initialize event notification.")
}
// Initialize and load bucket policies. // Initialize and load bucket policies.
err = initBucketPolicies(objAPI) err = initBucketPolicies(objAPI)
if err != nil { fatalIf(err, "Unable to load all bucket policies.")
errorIf(err, "Unable to load all bucket policies.")
}
// Success. // Success.
return objAPI, nil return objAPI, nil