summaryrefslogtreecommitdiffstats
path: root/cmd/platform/mattermost.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/mattermost.go')
-rw-r--r--cmd/platform/mattermost.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go
index 1646faf85..64e7974bf 100644
--- a/cmd/platform/mattermost.go
+++ b/cmd/platform/mattermost.go
@@ -59,7 +59,9 @@ var resetCmd = &cobra.Command{
}
func resetCmdF(cmd *cobra.Command, args []string) error {
- initDBCommandContextCobra(cmd)
+ if err := initDBCommandContextCobra(cmd); err != nil {
+ return err
+ }
confirmFlag, _ := cmd.Flags().GetBool("confirm")
if !confirmFlag {