refactor error message
This commit is contained in:
parent
fbb11de178
commit
29f7044695
|
@ -121,7 +121,7 @@ func (m *MetricValue) CheckValidity(now int64) (err error) {
|
|||
|
||||
//时间超前5分钟则报错
|
||||
if m.Timestamp-now > 300 {
|
||||
err = fmt.Errorf("point timestamp:%d is ahead of now:%d")
|
||||
err = fmt.Errorf("point timestamp:%d is ahead of now:%d", m.Timestamp, now)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue