db - fix dbsize nil err
This commit is contained in:
parent
0ede0b8df0
commit
615ad01ed6
2
db/db.go
2
db/db.go
|
@ -161,7 +161,7 @@ func (db *Db) SizeDb(dbname string) float32 {
|
||||||
if !done {
|
if !done {
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
fmt.Printf(" cannot find db %s or db is empty\n", dbname)
|
fmt.Printf(" cannot find db %s or db is empty\n", dbname)
|
||||||
} else {
|
} else if err != nil {
|
||||||
fmt.Printf(" what the fuck error : %+v\n", err)
|
fmt.Printf(" what the fuck error : %+v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user