diff --git a/boltease.go b/boltease.go index 6ae1d4d..b57de61 100644 --- a/boltease.go +++ b/boltease.go @@ -318,7 +318,7 @@ func (b *DB) GetBucketList(path []string) ([]string, error) { for idx := 1; idx < len(path); idx++ { bkt = bkt.Bucket([]byte(path[idx])) if bkt == nil { - return fmt.Errorf("Couldn't find bucket " + strings.Join(path[:idx], " / ")) + return fmt.Errorf("Couldn't find bucket " + strings.Join(path[:idx+1], " / ")) } } }