Skip to content

Commit

Permalink
docu: align error message punctuation to Terraform best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
lechnerc77 committed Jul 25, 2023
1 parent 92b9844 commit b736f4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/provider/datasource_whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (gen *whoamiDataSource) Read(ctx context.Context, req datasource.ReadReques

user := gen.client.GetLoggedInUser()
if user == nil {
resp.Diagnostics.AddError("No user found", "")
resp.Diagnostics.AddError("No User Found", "")
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (rs *directoryRoleCollectionAssignmentResource) Delete(ctx context.Context,

func (rs *directoryRoleCollectionAssignmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
resp.Diagnostics.AddError(
"Import not supported",
"Import Not Supported",
"Import is not supported for this resource. Use the resource directory_role_collection instead.",
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (rs *globalaccountRoleCollectionAssignmentResource) Delete(ctx context.Cont

func (rs *globalaccountRoleCollectionAssignmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
resp.Diagnostics.AddError(
"Import not supported",
"Import Not Supported",
"Import is not supported for this resource. Use the resource globalaccount_role_collection instead.",
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (rs *subaccountRoleCollectionAssignmentResource) Delete(ctx context.Context

func (rs *subaccountRoleCollectionAssignmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
resp.Diagnostics.AddError(
"Import not supported",
"Import Not Supported",
"Import is not supported for this resource. Use the resource subaccount_role_collection instead.",
)
}

0 comments on commit b736f4b

Please sign in to comment.