Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify error message for missing plugin versions
When using buf generate, provide specific error messages based on whether the plugin is unknown, or if it is just the version that is unknown. 1. For a valid plugin with non-existent version (e.g., v0.4.1 instead of v0.4.0): "unknown version v0.4.1 for plugin community/neoeinstein-prost. The latest version is v0.4.0. Check https://buf.build/community/neoeinstein-prost for other available versions" 2. For a completely non-existent plugin (e.g., a typo like "proust" instead of "prost"): "unknown plugin community/neoeinstein-proust, check https://buf.build/plugins for the list of available plugins" This provides more clarity to users about whether they need to fix a version number or if they have a completely incorrect plugin reference. Fixes #3650 🤖 Generated with [Claude Code](https://docs.anthropic.com/s/claude-code) Co-Authored-By: Claude <[email protected]>
- Loading branch information