Return detailed msg for notification errors (#5913)

This commit is contained in:
Anis Elleuch
2018-05-09 15:11:24 -07:00
committed by Dee Koder
parent c1f1fa3cc8
commit c525424179
4 changed files with 15 additions and 15 deletions

View File

@@ -109,7 +109,7 @@ func init() {
// StartGateway - handler for 'minio gateway <name>'.
func StartGateway(ctx *cli.Context, gw Gateway) {
if gw == nil {
logger.FatalIf(errUnexpected, "Gateway implementation not initialized, exiting.")
logger.FatalIf(errUnexpected, "Gateway implementation not initialized")
}
// Disable logging until gateway initialization is complete, any
@@ -156,7 +156,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
}
// Create certs path.
logger.FatalIf(createConfigDir(), "Unable to create configuration directories.")
logger.FatalIf(createConfigDir(), "Unable to create configuration directories")
// Initialize gateway config.
initConfig()
@@ -173,7 +173,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
// Create new notification system.
globalNotificationSys, err = NewNotificationSys(globalServerConfig, EndpointList{})
logger.FatalIf(err, "Unable to create new notification system.")
logger.FatalIf(err, "Unable to create new notification system")
// Create new policy system.
globalPolicySys = NewPolicySys()