mirror of https://github.com/status-im/consul.git
Fixes a bad error message.
This commit is contained in:
parent
f6ac3a4303
commit
19c3e262a6
|
@ -1079,7 +1079,7 @@ func (s *StateStore) ensureCheckTxn(tx *memdb.Txn, idx uint64, watches *DumbWatc
|
|||
|
||||
// Persist the check registration in the db.
|
||||
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 {
|
||||
return fmt.Errorf("failed updating index: %s", err)
|
||||
|
|
Loading…
Reference in New Issue