-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: "Did you mean" hints for unsupported resource types
When we detect that a module is trying to declare a resource type that doesn't exist in its corresponding provider, we have enough information to give some hints as to what might be wrong. We give preference to the possibility of mixing up a managed resource type with a data resource type, but if not that then we'll use our usual levenshtein-distance-based similar name suggestion function. We currently don't typically test exact error message text, so and this is just a cosmetic change to the message output, so there are now new tests or test modifications here.
- Loading branch information
1 parent
1e5c968
commit d7aff46
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters