Give log reviewers a hint as to which check is failing

This commit is contained in:
Sean Chittenden 2016-06-20 15:25:21 -07:00
parent 055b6973f6
commit c90fc057d4
No known key found for this signature in database
GPG key ID: 4EBC9DC16C2E5E16

View file

@ -1048,7 +1048,7 @@ func (a *Agent) UpdateCheck(checkID types.CheckID, status, output string) error
check, ok := a.checkTTLs[checkID]
if !ok {
return fmt.Errorf("CheckID does not have associated TTL")
return fmt.Errorf("CheckID %q does not have associated TTL", checkID)
}
// Set the status through CheckTTL to reset the TTL