chore(cmd): improves error messaging across the board
This commit is contained in:
parent
def2941128
commit
fcae0bd4df
6 changed files with 37 additions and 47 deletions
|
|
@ -40,7 +40,7 @@ func listDbs(cmd *cobra.Command, args []string) error {
|
|||
store := &Store{}
|
||||
dbs, err := store.AllStores()
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("cannot list-dbs: %v", err)
|
||||
}
|
||||
for _, db := range dbs {
|
||||
fmt.Println("@" + db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue