From 993947c70a9f230b4dd7752c9e89e515f33b258f Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 26 Sep 2019 23:47:13 -0300 Subject: [PATCH] MM-18741: clarify error message (#12357) Clarify the error message that is emitted by the server when failing to parse the configuration. Fixes: MM-18741 --- cmd/mattermost/commands/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mattermost/commands/server.go b/cmd/mattermost/commands/server.go index b705671f4a..658d6a0ad4 100644 --- a/cmd/mattermost/commands/server.go +++ b/cmd/mattermost/commands/server.go @@ -47,7 +47,7 @@ func serverCmdF(command *cobra.Command, args []string) error { } configStore, err := config.NewStore(configDSN, !disableConfigWatch) if err != nil { - return err + return errors.Wrap(err, "failed to load configuration") } return runServer(configStore, disableConfigWatch, usedPlatform, interruptChan)