package mysql import ( "database/sql" "git.aiterp.net/lucifer/new-server/models" "log" ) func dbErr(err error) error { if err == sql.ErrNoRows { return models.ErrNotFound } else if err != nil { log.Printf("Internal error: %s", err.Error()) return models.ErrInternal } return nil }