1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:40:55 +00:00

fix panic err

This commit is contained in:
liuchun 2016-03-07 15:00:03 +08:00
parent e29f4b57a3
commit 9ddc2f5474

2
cache/ssdb/ssdb.go vendored
View File

@ -27,7 +27,7 @@ func NewSsdbCache() cache.Cache {
func (rc *Cache) Get(key string) interface{} { func (rc *Cache) Get(key string) interface{} {
if rc.conn == nil { if rc.conn == nil {
if err := rc.connectInit(); err != nil { if err := rc.connectInit(); err != nil {
panic(err) return nil
} }
} }
value, err := rc.conn.Get(key) value, err := rc.conn.Get(key)