From 19c3e262a6674b2e66a4ead415740aaf26509fb7 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Wed, 28 Oct 2015 12:40:47 -0700 Subject: [PATCH] Fixes a bad error message. --- consul/state/state_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/state/state_store.go b/consul/state/state_store.go index 36a61ec656..c3393c68a0 100644 --- a/consul/state/state_store.go +++ b/consul/state/state_store.go @@ -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)