More error handling...

This commit is contained in:
2020-01-03 15:50:52 -05:00
parent 15c4090a94
commit bbec2d8ccf
2 changed files with 10 additions and 1 deletions

View File

@@ -181,6 +181,9 @@ func (database *Database) GetAllWorkerStats() *[]WorkerStats {
FROM worker WHERE closed_task_count>0 LIMIT 50`)
handleErr(err)
if err != nil {
return nil
}
stats := make([]WorkerStats, 0)
for rows.Next() {