Fixes a bad error message.

This commit is contained in:
James Phillips 2015-10-28 12:40:47 -07:00
parent f6ac3a4303
commit 19c3e262a6
1 changed files with 1 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ func (s *StateStore) ensureCheckTxn(tx *memdb.Txn, idx uint64, watches *DumbWatc
// Persist the check registration in the db. // Persist the check registration in the db.
if err := tx.Insert("checks", hc); err != nil { if err := tx.Insert("checks", hc); err != nil {
return fmt.Errorf("failed inserting service: %s", err) return fmt.Errorf("failed inserting check: %s", err)
} }
if err := tx.Insert("index", &IndexEntry{"checks", idx}); err != nil { if err := tx.Insert("index", &IndexEntry{"checks", idx}); err != nil {
return fmt.Errorf("failed updating index: %s", err) return fmt.Errorf("failed updating index: %s", err)