Skip to content

Commit 114a44c

Browse files
committed
Handle Cache Startup error
1 parent 5f53ff6 commit 114a44c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/aocli/cmds.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ var rootCmd = &cobra.Command{
6161
log.Debug("User loaded", "token", UserRsrc.SessionTok)
6262
}
6363

64-
cache.StartupDBM(UserRsrc.GetToken())
64+
err = cache.StartupDBM(UserRsrc.GetToken())
65+
if err != nil {
66+
log.Fatal(err)
67+
}
6568

6669
},
6770

0 commit comments

Comments
 (0)