db - fix dbsize nil err

This commit is contained in:
Mahdi Abu Yasmine 2023-11-11 02:38:26 +01:00
parent 0ede0b8df0
commit 615ad01ed6

View File

@ -161,7 +161,7 @@ func (db *Db) SizeDb(dbname string) float32 {
if !done {
if err == sql.ErrNoRows {
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)
}
}