You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/fwserver/server_listresource.go
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -113,15 +113,18 @@ func processListResult(req list.ListRequest, result list.ListResult) ListResult
113
113
if!result.Diagnostics.HasError() &&result.Identity==nil { // TODO: write a test
114
114
returnListResult{
115
115
Diagnostics: diag.Diagnostics{
116
-
diag.NewErrorDiagnostic("Incomplete List Result", "ListResult.Identity is nil."),
116
+
diag.NewErrorDiagnostic(
117
+
"Incomplete List Result",
118
+
"The provider did not populate the Identity field in the ListResourceResult. This may be due to an error in the provider's implementation.",
119
+
),
117
120
},
118
121
}
119
122
}
120
123
121
124
if!result.Diagnostics.HasError() &&req.IncludeResource&&result.Resource==nil { // TODO: write a test
122
125
result.Diagnostics.AddWarning(
123
126
"Incomplete List Result",
124
-
"ListRequest.IncludeResource is true and ListResult.Resource is nil.",
127
+
"The provider did not populate the Resource field in the ListResourceResult. This may be due to the provider not supporting this functionality or an error in the provider's implementation.",
Detail: "The provider did not populate the Resource field in the ListResourceResult. This may be due to the provider not supporting this functionality or an error in the provider's implementation.",
0 commit comments