summaryrefslogtreecommitdiffstats
path: root/cmd/platform/license.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/license.go')
-rw-r--r--cmd/platform/license.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/platform/license.go b/cmd/platform/license.go
index 91dc3bfba..dcb37092f 100644
--- a/cmd/platform/license.go
+++ b/cmd/platform/license.go
@@ -28,7 +28,9 @@ func init() {
}
func uploadLicenseCmdF(cmd *cobra.Command, args []string) error {
- initDBCommandContextCobra(cmd)
+ if err := initDBCommandContextCobra(cmd); err != nil {
+ return err
+ }
if len(args) != 1 {
return errors.New("Enter one license file to upload")