Signed-off-by: bergquist <carl.bergquist@gmail.com>
(cherry picked from commit e1458391bb)
Co-authored-by: Carl Bergquist <carl.bergquist@gmail.com>
This commit is contained in:
co-authored by
Carl Bergquist
parent
0c208a31dd
commit
b0314c0818
@@ -15,7 +15,7 @@ import (
|
||||
func validateTimeRange(item *annotations.Item) error {
|
||||
if item.EpochEnd == 0 {
|
||||
if item.Epoch == 0 {
|
||||
return errors.New("missing time range")
|
||||
return annotations.ErrTimerangeMissing
|
||||
}
|
||||
item.EpochEnd = item.Epoch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user