controller: Fix a typo, return error if volume fetch failed
@@ -218,9 +218,10 @@ func (vc *VolumeController) syncVolume(key string) (err error) {
if err != nil {
if datastore.ErrorIsNotFound(err) {
logrus.Infof("Longhorn volume %v has been deleted", key)
- }
return nil
}
+ return err
+ }
if volume.Spec.OwnerID == "" {
// Claim it
