Skip to content

Commit af69d8a

Browse files
committed
ListResource: tidy diagnostic message
1 parent 9590b11 commit af69d8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/fwserver/server_listresource.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ func processListResult(req list.ListRequest, result list.ListResult) ListResult
130130
if result.Identity == nil { // TODO: is result.Identity.Raw.IsNull() a practical concern?
131131
return ListResultError(
132132
"Incomplete List Result",
133-
"The provider did not populate the Identity field in the ListResourceResult. This may be due to an error in the provider's implementation.",
133+
"The provider did not populate the Identity field in the ListResourceResult. "+
134+
"This is always a problem with the provider. Please report this to the provider developer.",
134135
)
135136
}
136137

internal/fwserver/server_listresource_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestServerListResource(t *testing.T) {
208208
Diagnostics: diag.Diagnostics{
209209
diag.NewErrorDiagnostic(
210210
"Incomplete List Result",
211-
"The provider did not populate the Identity field in the ListResourceResult. This may be due to an error in the provider's implementation.",
211+
"The provider did not populate the Identity field in the ListResourceResult. This is always a problem with the provider. Please report this to the provider developer.",
212212
),
213213
},
214214
},

0 commit comments

Comments
 (0)