diff options
Diffstat (limited to 'cmd/platform/roles.go')
-rw-r--r-- | cmd/platform/roles.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmd/platform/roles.go b/cmd/platform/roles.go index df4b49436..97d6edf17 100644 --- a/cmd/platform/roles.go +++ b/cmd/platform/roles.go @@ -38,7 +38,10 @@ func init() { } func makeSystemAdminCmdF(cmd *cobra.Command, args []string) error { - initDBCommandContextCobra(cmd) + if err := initDBCommandContextCobra(cmd); err != nil { + return err + } + if len(args) < 1 { return errors.New("Enter at least one user.") } @@ -58,7 +61,10 @@ func makeSystemAdminCmdF(cmd *cobra.Command, args []string) error { } func makeMemberCmdF(cmd *cobra.Command, args []string) error { - initDBCommandContextCobra(cmd) + if err := initDBCommandContextCobra(cmd); err != nil { + return err + } + if len(args) < 1 { return errors.New("Enter at least one user.") } |