Text measurement type reporting wrong error

This commit is contained in:
Matthew Dillon 2014-11-30 15:49:04 -09:00
parent d535cd85ff
commit dfa2dd2eba

View file

@ -54,7 +54,7 @@ func (s *textMeasurementTypesStore) Update(id int64, text_measurement_type *mode
}
if id != text_measurement_type.Id {
return false, models.ErrObservationNotFound
return false, models.ErrTextMeasurementTypeNotFound
}
text_measurement_type.UpdatedAt = time.Now()