Skip to content

Commit c0bd1df

Browse files
authored
Merge pull request #134 from CaoShuFeng/trival
return an error when error happens in SetConditions()
2 parents 93d38ce + b939fb5 commit c0bd1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/problemclient/problem_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (c *nodeProblemClient) SetConditions(newConditions []api.NodeCondition) err
9393
}
9494
patch, err := generatePatch(newConditions)
9595
if err != nil {
96-
return nil
96+
return err
9797
}
9898
return c.client.Patch(api.StrategicMergePatchType).Resource("nodes").Name(c.nodeName).SubResource("status").Body(patch).Do().Error()
9999
}

0 commit comments

Comments
 (0)