-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sm/levenshtein-missing-types #1374
Conversation
Does the |
yeah, it was intercepting only that one error (where something was missing from the registry) and re-throwing all others. Now that the RegistryAccess returns a nicer error, there was nothing left to catch. |
QA Notes✅ : ➜ dreamhouse-lwc git:(main) hub:(GLOBAL - DevHub) scratch:([email protected])
➜ sf project deploy start -m Foox
Error (SfError): The specified metadata type is unsupported: [foox]
➜ dreamhouse-lwc git:(main) hub:(GLOBAL - DevHub) scratch:([email protected])
➜ ../../oss/plugin-deploy-retrieve/bin/run.js project deploy start -m Foox
Error (RegistryError): Missing metadata type definition in registry for id 'Foox'.
Try this:
Did you mean one of the following types? [Flow,Form]
Confirm the metadata type name is correct. Validate against the registry at:
<https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/registry/metadataRegistry.json>
If the type is not listed in the registry, check that it has Metadata API support via the Metadata Coverage Report:
<https://developer.salesforce.com/docs/metadata-coverage>
If the type is available via Metadata API but not in the registry
- Open an issue <https://github.com/forcedotcom/cli/issues>
- Add the type via PR. Instructions: <https://github.com/forcedotcom/source-deploy-retrieve/blob/main/contributing/metadata.md> |
What does this PR do?
nicer error messages for unresolvable types.
shares a bunch of logic with suffix-levenshtein, so that's all now in one place.
What issues does this PR fix or reference?
@W-16324102@