summaryrefslogtreecommitdiffstats
path: root/cmd/platform/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/import.go')
-rw-r--r--cmd/platform/import.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/platform/import.go b/cmd/platform/import.go
index ea3e42ad2..bf027340a 100644
--- a/cmd/platform/import.go
+++ b/cmd/platform/import.go
@@ -44,7 +44,9 @@ func init() {
}
func slackImportCmdF(cmd *cobra.Command, args []string) error {
- initDBCommandContextCobra(cmd)
+ if err := initDBCommandContextCobra(cmd); err != nil {
+ return err
+ }
if len(args) != 2 {
return errors.New("Incorrect number of arguments.")
@@ -76,7 +78,9 @@ func slackImportCmdF(cmd *cobra.Command, args []string) error {
}
func bulkImportCmdF(cmd *cobra.Command, args []string) error {
- initDBCommandContextCobra(cmd)
+ if err := initDBCommandContextCobra(cmd); err != nil {
+ return err
+ }
apply, err := cmd.Flags().GetBool("apply")
if err != nil {