diff --git a/db/db.go b/db/db.go index 7db6abc..8de203a 100644 --- a/db/db.go +++ b/db/db.go @@ -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) } }