Return error when can't execute stats query

This commit is contained in:
Marcos Lilljedahl
2015-07-03 09:25:18 -03:00
parent e2cff9febe
commit 5cbe15b676

View File

@@ -91,7 +91,7 @@ func (m *Mysql) gatherServer(serv string, acc plugins.Accumulator) error {
rows, err := db.Query(`SHOW /*!50002 GLOBAL */ STATUS`)
if err != nil {
return nil
return err
}
for rows.Next() {