Add reason message logs for non-exist resources

This commit is contained in:
Pengfei Ni
2018-05-24 14:43:44 +08:00
parent 481b2dc7cf
commit 5a06ad2d0f
3 changed files with 25 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ func TestExtractNotFound(t *testing.T) {
}
for _, test := range tests {
exists, err := checkResourceExistsFromError(test.err)
exists, _, err := checkResourceExistsFromError(test.err)
if test.exists != exists {
t.Errorf("expected: %v, saw: %v", test.exists, exists)
}